Esempio n. 1
0
        public bool ClientReceive(out TransportEventData eventData)
        {
            eventData = default(TransportEventData);
#if UNITY_WEBGL
            return(wsClient.ClientReceive(out eventData));
#else
            if (Client == null)
            {
                return(false);
            }
            Client.PollEvents();
            if (clientEventQueue.Count == 0)
            {
                return(false);
            }
            return(clientEventQueue.TryDequeue(out eventData));
#endif
        }
Esempio n. 2
0
 public bool ClientReceive(out TransportEventData eventData)
 {
     return(wsClient.ClientReceive(out eventData));
 }