[Modify] Add it

master
sta 5 years ago
parent 86921077de
commit f5d9dffc95

@ -240,6 +240,16 @@ namespace WebSocketSharp.Net
return true; return true;
} }
internal HttpListenerWebSocketContext GetWebSocketContext ()
{
if (_websocketContext != null)
return _websocketContext;
_websocketContext = new HttpListenerWebSocketContext (this, null);
return _websocketContext;
}
internal HttpListenerWebSocketContext GetWebSocketContext (string protocol) internal HttpListenerWebSocketContext GetWebSocketContext (string protocol)
{ {
if (_websocketContext != null) if (_websocketContext != null)

Loading…
Cancel
Save