public StubWebSocketConnection Connect(string path)
 {
     var connection = new StubWebSocketConnection(Guid.NewGuid(), path);
     connection.ReceiveMessageHandler = msg =>
         OnMessageReceived(new WebSocketMessageEventArgs(connection, msg));
     RegisterConnection(connection);
     return connection;
 }
Beispiel #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);
        }
Beispiel #3
0
 public void Disconnect(StubWebSocketConnection connection)
 {
     UnregisterConnection(connection.Identity);
 }
 public void Disconnect(StubWebSocketConnection connection)
 {
     UnregisterConnection(connection.Identity);
 }