Пример #1
0
        private static void AddClient(WSHandler client)
        {
            string key = GetClientKey(client);

            if (!string.IsNullOrEmpty(key))
            {
                LogDebug($"New Websocket connection {key}");
                clientsWS.Remove(client);
                clientsWS.Add(client);
            }
        }
Пример #2
0
 private static string GetClientKey(WSHandler client)
 {
     return(client.WebSocketContext.QueryString.ToString());
 }