|
My Project
|
Represents the event data for the WebSocket.OnMessage event. More...
Properties | |
| string | Data [get] |
| Gets the message data as a string. | |
| bool | IsBinary [get] |
| Gets a value indicating whether the message type is binary. | |
| bool | IsPing [get] |
| Gets a value indicating whether the message type is ping. | |
| bool | IsText [get] |
| Gets a value indicating whether the message type is text. | |
| byte[] | RawData [get] |
| Gets the message data as an array of byte. | |
Represents the event data for the WebSocket.OnMessage event.
The message event occurs when the WebSocket interface receives a message or a ping if the WebSocket.EmitOnPing property is set to true.
If you would like to get the message data, you should access the Data or RawData property.
|
get |
Gets the message data as a string.
A string that represents the message data if the message type is text or ping.
null if the message type is binary or the message data could not be UTF-8-decoded.
|
get |
Gets a value indicating whether the message type is binary.
true if the message type is binary; otherwise, false.
|
get |
Gets a value indicating whether the message type is ping.
true if the message type is ping; otherwise, false.
|
get |
Gets a value indicating whether the message type is text.
true if the message type is text; otherwise, false.
|
get |
Gets the message data as an array of byte.
An array of byte that represents the message data.