Метод | Описание | |
---|---|---|
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 |
Send the provided data to the client.
|
|
Send ( string message ) : Task |
Send the provided message to the client.
|
|
WebSocket ( object>.IDictionary |
Initializes a new instance of the WebSocket class.
|
Метод | Описание | |
---|---|---|
ThrowIfDisposed ( ) : void |
Throws ObjectDisposedException if this instance has been disposed.
|
public Close ( int closeStatus, string closeDescription ) : Task | ||
closeStatus | int | /// The close status. /// |
closeDescription | string | /// The close description. /// |
Результат | Task |
public Send ( ArraySegment |
||
data | ArraySegment |
/// The data. /// |
messageType | int | /// The message type. /// |
endOfMessage | bool | /// A value indicating whether this is the end of the message. /// |
Результат | Task |
public Send ( string message ) : Task | ||
message | string | /// The message. /// |
Результат | Task |
public WebSocket ( object>.IDictionary |
||
context | object>.IDictionary | /// The context. /// |
Результат | System |