C# Класс WebStreams.Server.WebSocket

The web socket context.
Наследование: IDisposable
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
ThrowIfDisposed ( ) : void

Throws ObjectDisposedException if this instance has been disposed.

Описание методов

Close() публичный Метод

Close the connection with the client.
public Close ( int closeStatus, string closeDescription ) : Task
closeStatus int /// The close status. ///
closeDescription string /// The close description. ///
Результат Task

Dispose() публичный Метод

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Результат void

ReceiveString() публичный Метод

Receives and returns a string to the client.
public ReceiveString ( ) : Task
Результат Task

Send() публичный Метод

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. ///
Результат Task

Send() публичный Метод

Send the provided message to the client.
public Send ( string message ) : Task
message string /// The message. ///
Результат Task

WebSocket() публичный Метод

Initializes a new instance of the WebSocket class.
public WebSocket ( object>.IDictionary context ) : System
context object>.IDictionary /// The context. ///
Результат System