Beispiel #1
0
        public ChatClient(IChatClientListener listener)
        {
            this.listener = listener;
            this.State = ChatState.Uninitialized;

            this.PublicChannels = new Dictionary<string, ChatChannel>();
            this.PrivateChannels = new Dictionary<string, ChatChannel>();
        }
Beispiel #2
0
        };                                                                                                                                                                                                       //, { ConnectionProtocol.RHttp, 6063 } };


        public ChatClient(IChatClientListener listener)
        {
            this.listener = listener;
            this.State    = ChatState.Uninitialized;

            this.PublicChannels  = new Dictionary <string, ChatChannel>();
            this.PrivateChannels = new Dictionary <string, ChatChannel>();
        }
Beispiel #3
0
 public ChatClient(IChatClientListener listener, ConnectionProtocol protocol = 0)
 {
     this.listener                    = listener;
     this.State                       = ChatState.Uninitialized;
     this.chatPeer                    = new ChatPeer(this, protocol);
     this.PublicChannels              = new Dictionary <string, ChatChannel>();
     this.PrivateChannels             = new Dictionary <string, ChatChannel>();
     this.PublicChannelsUnsubscribing = new HashSet <string>();
 }
Beispiel #4
0
        public ChatClient(IChatClientListener listener, ConnectionProtocol protocol =
#if UNITY_WEBGL
    ConnectionProtocol.WebSocketSecure
#else
    ConnectionProtocol.Udp
#endif
        )
        {
#if UNITY_WEBGL
	        if (protocol != ConnectionProtocol.WebSocket && protocol != ConnectionProtocol.WebSocketSecure) {
				UnityEngine.Debug.Log("WebGL only supports WebSocket protocol. Overriding ChatClient.Connect() 'protocol' parameter");
				protocol = ConnectionProtocol.WebSocketSecure;
			}
#endif

            this.listener = listener;
            this.State = ChatState.Uninitialized;

            this.chatPeer = new ChatPeer(this, protocol);

            this.PublicChannels = new Dictionary<string, ChatChannel>();
            this.PrivateChannels = new Dictionary<string, ChatChannel>();
        }
        public ChatClient(IChatClientListener listener, ConnectionProtocol protocol =
#if UNITY_WEBGL
                          ConnectionProtocol.WebSocketSecure
Beispiel #6
0
        public ChatClient(IChatClientListener listener, ConnectionProtocol protocol = ConnectionProtocol.Udp)
        {
            this.listener = listener;
            this.State = ChatState.Uninitialized;

            this.chatPeer = new ChatPeer(this, protocol);

            this.PublicChannels = new Dictionary<string, ChatChannel>();
            this.PrivateChannels = new Dictionary<string, ChatChannel>();
        }