Sends the specified message fragment to the server.
Namespace:
Rebex.Net
Assembly:
Rebex.WebSocket (in Rebex.WebSocket.dll)
Syntax
Visual Basic |
---|
Public Sub Send ( _ buffer As ArraySegment(Of Byte), _ messageType As WebSocketMessageType, _ endOfMessage As Boolean _ ) |
C# |
---|
public void Send( ArraySegment<byte> buffer, WebSocketMessageType messageType, bool endOfMessage ) |
Parameters
- buffer
- Type: System..::..ArraySegment<(Of <(<'Byte>)>)>
Array segment that contains message fragment data.
- messageType
- Type: Rebex.Net..::..WebSocketMessageType
Message type. Must be eitherorCopy Code Text
.Copy Code Binary
- endOfMessage
- Type: System..::..Boolean
A value that indicates whether this is the last fragment of a message.