Sisk

Class

HttpServerEngineWebSocket

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

Provides an abstract base class for WebSocket contexts.

C#
public abstract class HttpServerEngineWebSocket : IDisposable

Inheritance #

object ← HttpServerEngineWebSocket

Implements #

IDisposable

Inherited Members #

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors #

NameDescription
HttpServerEngineWebSocket()

Properties #

NameDescription
StateGets the state of the WebSocket.

Methods #

NameDescription
CloseAsync(WebSocketCloseStatus, string?, CancellationToken)Closes the WebSocket connection asynchronously.
CloseOutputAsync(WebSocketCloseStatus, string?, CancellationToken)Closes the output stream of the WebSocket asynchronously.
CreateFromWebSocket(WebSocket)Creates a concrete HttpServerEngineWebSocket instance from the specified WebSocket.
Dispose()Releases the resources associated with this WebSocket context.
ReceiveAsync(Memory<byte>, CancellationToken)Receives data from the WebSocket asynchronously.
SendAsync(ReadOnlyMemory<byte>, WebSocketMessageType, bool, CancellationToken)Sends data over the WebSocket asynchronously.

Type to search the documentation and the API reference.