Пример #1
0
        public SocketModel(string uri)
        {
            Host_  = uri;
            Socket = new WebSocket(Host);

            MessageRecievedActions  = new ActionDictionary();
            Socket.MessageReceived += Socket_MessageReceived;
        }
Пример #2
0
 public void Dispose()
 {
     Socket.Dispose();
     MessageRecievedActions = new ActionDictionary();
 }