C# Class WebStreams.Server.WebSocket

The web socket context.
Inheritance: IDisposable
Afficher le fichier Open project: WebStreams/WebStreams.Server

Méthodes publiques

Méthode Description
Close ( int closeStatus, string closeDescription ) : Task

Close the connection with the client.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

ReceiveString ( ) : Task

Receives and returns a string to the client.

Send ( ArraySegment data, int messageType, bool endOfMessage ) : Task

Send the provided data to the client.

Send ( string message ) : Task

Send the provided message to the client.

WebSocket ( object>.IDictionary context ) : System

Initializes a new instance of the WebSocket class.

Private Methods

Méthode Description
ThrowIfDisposed ( ) : void

Throws ObjectDisposedException if this instance has been disposed.

Method Details

Close() public méthode

Close the connection with the client.
public Close ( int closeStatus, string closeDescription ) : Task
closeStatus int /// The close status. ///
closeDescription string /// The close description. ///
Résultat Task

Dispose() public méthode

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Résultat void

ReceiveString() public méthode

Receives and returns a string to the client.
public ReceiveString ( ) : Task
Résultat Task

Send() public méthode

Send the provided data to the client.
public Send ( ArraySegment data, int messageType, bool endOfMessage ) : Task
data ArraySegment /// The data. ///
messageType int /// The message type. ///
endOfMessage bool /// A value indicating whether this is the end of the message. ///
Résultat Task

Send() public méthode

Send the provided message to the client.
public Send ( string message ) : Task
message string /// The message. ///
Résultat Task

WebSocket() public méthode

Initializes a new instance of the WebSocket class.
public WebSocket ( object>.IDictionary context ) : System
context object>.IDictionary /// The context. ///
Résultat System