/// <summary>
 /// Creates a new websocket client socknet channel module.
 /// </summary>
 /// <param name="path"></param>
 /// <param name="hostname"></param>
 /// <param name="onWebSocketEstablished"></param>
 /// <param name="combineContinuations"></param>
 public WebSocketClientSockNetChannelModule(string path, string hostname, OnWebSocketEstablishedDelegate onWebSocketEstablished, bool combineContinuations = true)
 {
     this.path = path;
     this.hostname = hostname;
     this.onWebSocketEstablished = onWebSocketEstablished;
     this.combineContinuations = combineContinuations;
 }
 /// <summary>
 /// Creates a new websocket client socknet channel module.
 /// </summary>
 /// <param name="path"></param>
 /// <param name="hostname"></param>
 /// <param name="onWebSocketEstablished"></param>
 /// <param name="combineContinuations"></param>
 public WebSocketClientSockNetChannelModule(string path, string hostname, OnWebSocketEstablishedDelegate onWebSocketEstablished, bool combineContinuations = true)
 {
     this.path     = path;
     this.hostname = hostname;
     this.onWebSocketEstablished = onWebSocketEstablished;
     this.combineContinuations   = combineContinuations;
 }
            public PerChannelWebSocketClientSockNetChannelModule(string path, string hostname, OnWebSocketEstablishedDelegate onWebSocketEstablished, bool combineContinuations = true)
            {
                this.path     = path;
                this.hostname = hostname;
                this.onWebSocketEstablished = onWebSocketEstablished;
                this.combineContinuations   = combineContinuations;

                this.secKey = WebSocketUtil.GenerateSecurityKey();

                this.expectedAccept = WebSocketUtil.GenerateAccept(secKey);
            }
            public PerChannelWebSocketClientSockNetChannelModule(string path, string hostname, OnWebSocketEstablishedDelegate onWebSocketEstablished, bool combineContinuations = true)
            {
                this.path = path;
                this.hostname = hostname;
                this.onWebSocketEstablished = onWebSocketEstablished;
                this.combineContinuations = combineContinuations;

                this.secKey = WebSocketUtil.GenerateSecurityKey();

                this.expectedAccept = WebSocketUtil.GenerateAccept(secKey);
            }