Skip to content

XSockets Configuration

Uffe Björklund edited this page Jun 16, 2015 · 6 revisions

As most things in XSockets the configuration is a plugin...

  1. Select Add -> New Item and then navigate to XSockets.NET v5 and choose Configruation
  2. Then set the IP/DNS and port

Note: Add 2 or more configuration on separate ports to see that you can communicate cross-endpoints. This is good when you have simple clients with unsecure (maybe custom) protocols behind a firewall (with the server) and the another public endpoint for encrypted traffic. They will still be able to communicate with each other.

using XSockets.Core.Configuration;
namespace Server
{
    public class Config1 : ConfigurationSetting
    {
       public Config1() : base("ws://127.0.0.1:8080") { }
    }
    public class Config2 : ConfigurationSetting
    {
        public Config2() : base("ws://127.0.0.1:8181") { }
    }
}

next

Clone this wiki locally