예제 #1
0
 /// <summary>Check or create instance.</summary>
 private static void CheckOrCreateInstance()
 {
     if (_instance == null)
     {
         _instance = new WebsocketManager();
     }
 }
 /// <summary>Queue message.</summary>
 /// <param name="endpointGuid">The endpoint UID.</param>
 /// <param name="message">    The message.</param>
 private void _QueueMessage(Guid endpointGuid, string message)
 {
     // traverse the clients that have this endpoint
     foreach (Guid clientGuid in _endpointClientsDict[endpointGuid])
     {
         if (!WebsocketManager.QueueMessageForClient(clientGuid, message))
         {
             RemoveClient(clientGuid);
         }
     }
 }