Method | Description | |
---|---|---|
CloseSession ( ushort statusCode, string reason = null ) : void | ||
Dispose ( ) : void | ||
ReadNextMessageAsync ( ) : Task |
||
SendBinary ( byte blob ) : void | ||
SendClose ( ushort statusCode, string reason = null ) : void | ||
SendPing ( ) : void | ||
SendPong ( ) : void | ||
SendText ( string text ) : void | ||
WebSocketSession ( long id, |
Method | Description | |
---|---|---|
TryDecodeNextMessage ( OpCode &opCode, byte &messagePayload ) : bool | ||
Write ( OpCode opCode, byte payload = null ) : void |
public CloseSession ( ushort statusCode, string reason = null ) : void | ||
statusCode | ushort | |
reason | string | |
return | void |
public SendClose ( ushort statusCode, string reason = null ) : void | ||
statusCode | ushort | |
reason | string | |
return | void |
public WebSocketSession ( long id, |
||
id | long | |
tcpClient | ||
stream | Stream | |
onBytesReceived | Action |
|
onBytesSent | Action |
|
onDisposed | System.Action | |
initialReadBufferSize | int | |
readTimeoutMs | int | |
writeTimeoutMs | int | |
return | System |