|
|
|
@ -116,13 +116,13 @@ namespace WebSocketSharp
|
|
|
|
#region Internal Constructors
|
|
|
|
#region Internal Constructors
|
|
|
|
|
|
|
|
|
|
|
|
// As server
|
|
|
|
// As server
|
|
|
|
internal WebSocket (HttpListenerWebSocketContext context, string protocol, Logger logger)
|
|
|
|
internal WebSocket (HttpListenerWebSocketContext context, string protocol)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_context = context;
|
|
|
|
_context = context;
|
|
|
|
_protocol = protocol;
|
|
|
|
_protocol = protocol;
|
|
|
|
_logger = logger;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_closeContext = context.Close;
|
|
|
|
_closeContext = context.Close;
|
|
|
|
|
|
|
|
_logger = context.Log;
|
|
|
|
_secure = context.IsSecureConnection;
|
|
|
|
_secure = context.IsSecureConnection;
|
|
|
|
_stream = context.Stream;
|
|
|
|
_stream = context.Stream;
|
|
|
|
_waitTime = TimeSpan.FromSeconds (1);
|
|
|
|
_waitTime = TimeSpan.FromSeconds (1);
|
|
|
|
|