public ChatClient(IChatClientListener listener) { this.listener = listener; this.State = ChatState.Uninitialized; this.PublicChannels = new Dictionary<string, ChatChannel>(); this.PrivateChannels = new Dictionary<string, ChatChannel>(); }
}; //, { 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>(); }
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>(); }
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
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>(); }