Exemplo n.º 1
0
 public StubWebSocketConnection Connect(string path)
 {
     var connection = new StubWebSocketConnection(Guid.NewGuid(), path);
     connection.ReceiveMessageHandler = msg =>
         OnMessageReceived(new WebSocketMessageEventArgs(connection, msg));
     RegisterConnection(connection);
     return connection;
 }
Exemplo n.º 2
0
        public StubWebSocketConnection Connect(string path)
        {
            var connection = new StubWebSocketConnection(Guid.NewGuid(), path);

            connection.ReceiveMessageHandler = msg =>
                                               OnMessageReceived(new WebSocketMessageEventArgs(connection, msg));
            RegisterConnection(connection);
            return(connection);
        }
Exemplo n.º 3
0
 public void Disconnect(StubWebSocketConnection connection)
 {
     UnregisterConnection(connection.Identity);
 }
Exemplo n.º 4
0
 public void Disconnect(StubWebSocketConnection connection)
 {
     UnregisterConnection(connection.Identity);
 }