Skip to content

Commit f5d9dff

Browse files
committed
[Modify] Add it
1 parent 8692107 commit f5d9dff

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

websocket-sharp/Net/HttpListenerContext.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,16 @@ internal bool Authenticate ()
240240
return true;
241241
}
242242

243+
internal HttpListenerWebSocketContext GetWebSocketContext ()
244+
{
245+
if (_websocketContext != null)
246+
return _websocketContext;
247+
248+
_websocketContext = new HttpListenerWebSocketContext (this, null);
249+
250+
return _websocketContext;
251+
}
252+
243253
internal HttpListenerWebSocketContext GetWebSocketContext (string protocol)
244254
{
245255
if (_websocketContext != null)

0 commit comments

Comments
 (0)