Class
WebSocketMessage
Represents an websocket request message received by an websocket server.
public sealed class WebSocketMessageInheritance #
Inherited Members #
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Properties #
| Name | Description |
|---|---|
| Length | Gets the message length in byte count. |
| MessageBytes | Gets an byte array with the message contents. |
| Sender | Gets the sender HttpWebSocket object instance which received this message. |
Methods #
| Name | Description |
|---|---|
| GetString(Encoding) | Reads the message bytes as string using the specified encoding. |
| GetString() | Reads the message bytes as string using the HTTP request encoding. |