Метод | Описание | |
---|---|---|
BuildHandshake ( WebSocketHttpRequest request ) : byte[] | ||
Create ( WebSocketHttpRequest request, Action |
||
CreateResponseKey ( string requestKey ) : string | ||
FrameData ( byte payload, FrameType frameType ) : byte[] | ||
ProcessFrame ( FrameType frameType, byte data, Action |
||
ReceiveData ( List |
Метод | Описание | |
---|---|---|
ReadUTF8PayloadData ( byte bytes ) : string |
public static BuildHandshake ( WebSocketHttpRequest request ) : byte[] | ||
request | WebSocketHttpRequest | |
Результат | byte[] |
public static Create ( WebSocketHttpRequest request, Action |
||
request | WebSocketHttpRequest | |
onMessage | Action |
|
onClose | System.Action | |
onBinary | Action |
|
Результат | IHandler |
public static CreateResponseKey ( string requestKey ) : string | ||
requestKey | string | |
Результат | string |
public static FrameData ( byte payload, FrameType frameType ) : byte[] | ||
payload | byte | |
frameType | FrameType | |
Результат | byte[] |
public static ProcessFrame ( FrameType frameType, byte data, Action |
||
frameType | FrameType | |
data | byte | |
onMessage | Action |
|
onClose | System.Action | |
onBinary | Action |
|
Результат | void |
public static ReceiveData ( List |
||
data | List |
|
readState | ReadState | |
processFrame | byte[]>.Action | |
Результат | void |