DotNetty.Codecs.Http.WebSockets.WebSocketServerHandshakerFactory.WebSocketServerHandshakerFactory C# (CSharp) Method

WebSocketServerHandshakerFactory() public method

Constructor specifying the destination web socket location
public WebSocketServerHandshakerFactory ( string webSocketUrl, string subprotocols, DotNetty.Codecs.Http.WebSockets.WebSocketDecoderConfig decoderConfig ) : System.Threading.Tasks
webSocketUrl string URL for web socket communications. e.g "ws://myhost.com/mypath". /// Subsequent web socket frames will be sent to this URL.
subprotocols string CSV of supported protocols. Null if sub protocols not supported.
decoderConfig DotNetty.Codecs.Http.WebSockets.WebSocketDecoderConfig Frames decoder options.
return System.Threading.Tasks
        public WebSocketServerHandshakerFactory(string webSocketUrl, string subprotocols, WebSocketDecoderConfig decoderConfig)
        {
            if (decoderConfig is null) { ThrowHelper.ThrowArgumentNullException(ExceptionArgument.decoderConfig); }

            _webSocketUrl = webSocketUrl;
            _subprotocols = subprotocols;
            _decoderConfig = decoderConfig;
        }

Same methods

WebSocketServerHandshakerFactory::WebSocketServerHandshakerFactory ( string webSocketUrl, string subprotocols, bool allowExtensions ) : System.Threading.Tasks
WebSocketServerHandshakerFactory::WebSocketServerHandshakerFactory ( string webSocketUrl, string subprotocols, bool allowExtensions, int maxFramePayloadLength ) : System.Threading.Tasks
WebSocketServerHandshakerFactory::WebSocketServerHandshakerFactory ( string webSocketUrl, string subprotocols, bool allowExtensions, int maxFramePayloadLength, bool allowMaskMismatch ) : System.Threading.Tasks