Sisk

Method

HttpRequest.GetWebSocket

Namespace
Sisk.Core.Http
Assembly
Sisk.Core.dll

GetWebSocket(string?, string?) #

Accepts and acquires a websocket for this request. Calling this method will put this HttpRequest instance in streaming state.

C#
public HttpWebSocket GetWebSocket(string? subprotocol = null, string? identifier = null)

Parameters #

subprotocol string?

Optional. Determines the sub-protocol to plug the websocket in.

identifier string?

Optional. Defines an label to the Web Socket connection, useful for finding this connection’s reference later.

Returns #

HttpWebSocket

Type to search the documentation and the API reference.