Ejemplo n.º 1
0
 public WebSocketClient(SocketIO io, PackgeManager parser)
 {
     _parser = parser;
     _io     = io;
     _messageReceivedObserver = new MessageReceivedObserver(_parser, _io);
     _disconnectionHappened   = new DisconnectionHappenedObserver(_io);
 }
Ejemplo n.º 2
0
        public void OpenedPackgerTest()
        {
            var    socket  = new SocketIO("http://localhost:11000");
            var    manager = new PackgeManager(socket);
            string msg     = "0{\"sid\":\"mzxOPB0FoNcYh4IKAAAG\",\"upgrades\":[],\"pingInterval\":10000,\"pingTimeout\":5000}";

            manager.Unpack(msg);
            Assert.AreEqual("mzxOPB0FoNcYh4IKAAAG", socket.Id);
        }
 public ClientWebSocket(SocketIO io, PackgeManager parser)
 {
     _parser = parser;
     _io     = io;
 }
 public WebSocketSharpClient(SocketIO io, PackgeManager parser)
 {
     _parser = parser;
     _io     = io;
 }
Ejemplo n.º 5
0
 public MessageReceivedObserver(PackgeManager parser, SocketIO io)
 {
     _parser = parser;
     _io     = io;
 }
 public ClientWebSocket(SocketIO io, PackgeManager parser) : base(io, parser)
 {
 }