Пример #1
0
        private static void ConfigureEvents(IWebSocketConnection socket)
        {
            logger.Debug($"{socket.ConnectionInfo.Id} Received client connection from {socket.ConnectionInfo.ClientIpAddress}:{socket.ConnectionInfo.ClientPort}");
            ClientConnection connection = new ClientConnection(socket);

            session.ConnectClient(connection);
        }
Пример #2
0
 public void DisconnectClient(ClientConnection client)
 {
     client.Disconnect();
 }
Пример #3
0
 private void ConnectionOpen(ClientConnection client)
 {
     logger.Info($"{client.SocketConnection.ConnectionInfo.Id} Connection opened for client {client.Identity}");
 }