Method | Description | |
---|---|---|
Abort ( ) : void | ||
CheckPlatformSupport ( ) : void | ||
CloseAsync ( WebSocketCloseStatus closeStatus, string statusDescription, |
||
CloseOutputAsync ( WebSocketCloseStatus closeStatus, string statusDescription, |
||
ConnectAsyncCore ( |
||
Create ( ) : |
||
Dispose ( ) : void | ||
IsValid ( |
||
ReceiveAsync ( ArraySegment |
||
SendAsync ( ArraySegment |
Method | Description | |
---|---|---|
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 | ||
return | void |
public CloseAsync ( WebSocketCloseStatus closeStatus, string statusDescription, |
||
closeStatus | WebSocketCloseStatus | |
statusDescription | string | |
cancellationToken | ||
return | Task |
public CloseOutputAsync ( WebSocketCloseStatus closeStatus, string statusDescription, |
||
closeStatus | WebSocketCloseStatus | |
statusDescription | string | |
cancellationToken | ||
return | Task |
public ConnectAsyncCore ( |
||
uri | ||
cancellationToken | ||
options | ||
return | Task |
public static IsValid ( |
||
handle | ||
return | bool |
public ReceiveAsync ( ArraySegment |
||
buffer | ArraySegment |
|
cancellationToken | ||
return | Task |
public SendAsync ( ArraySegment |
||
buffer | ArraySegment |
|
messageType | WebSocketMessageType | |
endOfMessage | bool | |
cancellationToken | ||
return | Task |