Метод | Описание | |
---|---|---|
Abort ( ) : void | ||
CheckPlatformSupport ( ) : void | ||
CloseAsync ( WebSocketCloseStatus closeStatus, string statusDescription, |
||
CloseOutputAsync ( WebSocketCloseStatus closeStatus, string statusDescription, |
||
ConnectAsyncCore ( |
||
Create ( ) : |
||
Dispose ( ) : void | ||
IsValid ( |
||
ReceiveAsync ( ArraySegment |
||
SendAsync ( ArraySegment |
Метод | Описание | |
---|---|---|
BuildRequestHeader ( |
Creates a byte[] containing the headers to send to the server.
|
|
ConnectSocketAsync ( string host, int port, |
Connects a socket to the specified host and port, subject to cancellation and aborting.
|
|
CreateSecKeyAndSecWebSocketAccept ( ) : string>.KeyValuePair |
||
ParseAndValidateConnectResponseAsync ( System.Stream stream, |
Read and validate the connect response headers from the server.
|
|
ReadResponseHeaderLineAsync ( System.Stream stream, |
Reads a line from the stream.
|
|
ValidateAndTrackHeader ( string targetHeaderName, string targetHeaderValue, string foundHeaderName, string foundHeaderValue, bool &foundHeader ) : void |
Validates a received header against expected values and tracks that we've received it.
|
|
WebSocketHandle ( System.Net.WebSockets.WinHttpWebSocket webSocket ) : System | ||
WebSocketHandle ( System.Net.WebSockets.WinRTWebSocket webSocket ) : System |
public static CheckPlatformSupport ( ) : void | ||
Результат | void |
public CloseAsync ( WebSocketCloseStatus closeStatus, string statusDescription, |
||
closeStatus | WebSocketCloseStatus | |
statusDescription | string | |
cancellationToken | ||
Результат | Task |
public CloseOutputAsync ( WebSocketCloseStatus closeStatus, string statusDescription, |
||
closeStatus | WebSocketCloseStatus | |
statusDescription | string | |
cancellationToken | ||
Результат | Task |
public ConnectAsyncCore ( |
||
uri | ||
cancellationToken | ||
options | ||
Результат | Task |
public static Create ( ) : |
||
Результат |
public static IsValid ( |
||
handle | ||
Результат | bool |
public ReceiveAsync ( ArraySegment |
||
buffer | ArraySegment |
|
cancellationToken | ||
Результат | Task |
public SendAsync ( ArraySegment |
||
buffer | ArraySegment |
|
messageType | WebSocketMessageType | |
endOfMessage | bool | |
cancellationToken | ||
Результат | Task |