From f5d9dffc951af042a57e270a43e7c20d7130f41f Mon Sep 17 00:00:00 2001 From: sta Date: Fri, 25 Dec 2020 19:56:13 +0900 Subject: [PATCH] [Modify] Add it --- websocket-sharp/Net/HttpListenerContext.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/websocket-sharp/Net/HttpListenerContext.cs b/websocket-sharp/Net/HttpListenerContext.cs index 643465cc..478c24aa 100644 --- a/websocket-sharp/Net/HttpListenerContext.cs +++ b/websocket-sharp/Net/HttpListenerContext.cs @@ -240,6 +240,16 @@ namespace WebSocketSharp.Net return true; } + internal HttpListenerWebSocketContext GetWebSocketContext () + { + if (_websocketContext != null) + return _websocketContext; + + _websocketContext = new HttpListenerWebSocketContext (this, null); + + return _websocketContext; + } + internal HttpListenerWebSocketContext GetWebSocketContext (string protocol) { if (_websocketContext != null)