WebSocketClient.Send Method
Namespace: Rebex.Net
Assembly: Rebex.WebSocket.dll (version 7.0.9083)
Send(ArraySegment<Byte>, WebSocketMessageType, Boolean)
Sends the specified message fragment to the server.
Declaration
public void Send(ArraySegment<byte> buffer, WebSocketMessageType messageType, bool endOfMessage)
Parameters
Type | Name | Description |
---|---|---|
ArraySegment<Byte> | buffer | Array segment that contains message fragment data. |
WebSocketMessageType | messageType | Message type. Must be either or .
|
Boolean | endOfMessage | A value that indicates whether this is the last fragment of a message. |
Send(ArraySegment<Byte>, WebSocketMessageType, WebSocketMessageFlags)
Sends the specified message fragment to the server.
Declaration
public void Send(ArraySegment<byte> buffer, WebSocketMessageType messageType, WebSocketMessageFlags flags)
Parameters
Type | Name | Description |
---|---|---|
ArraySegment<Byte> | buffer | Array segment that contains message fragment data. |
WebSocketMessageType | messageType | Message type. Must be either or .
|
WebSocketMessageFlags | flags | Flags for message fragment. |
Send(Byte[])
Sends the specified binary message to the server.
Declaration
public void Send(byte[] message)
Parameters
Type | Name | Description |
---|---|---|
Byte[] | message | Binary message to send. |
Send(String)
Sends the specified text message to the server.
Declaration
public void Send(string message)
Parameters
Type | Name | Description |
---|---|---|
String | message | Text message to send. |