Example #1
0
 public void SetServerSocket(ServerSocketWs serverSocket)
 {
     if (_serverSocket == null)
     {
         _serverSocket = serverSocket;
         _serverSocket.OnUpdateEvent += Update;
     }
 }
Example #2
0
        public WsService(ServerSocketWs serverSocket)
        {
            IgnoreExtensions = true;
            _messageQueue    = new Queue <byte[]>();

            _serverSocket = serverSocket;
            _serverSocket.OnUpdateEvent += Update;
        }