Example #1
0
        /// <summary>
        /// WebEventManager function.
        /// </summary>
        public WebEventManager()
        {
            string IP   = PlusEnvironment.GetConfig().data["ws.tcp.bindip"];
            int    Port = int.Parse(PlusEnvironment.GetConfig().data["ws.tcp.port"]);

            this._webSocketServer = new WebSocketServer("ws://" + IP + ":" + Port);
            this._webSockets      = new ConcurrentDictionary <IWebSocketConnection, WebSocketUser>();
            this._webEvents       = new ConcurrentDictionary <string, IWebEvent>();
            this.RegisterIncoming();
            this.RegisterOutgoing();
        }