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 either
 Copy imageCopy Code
Text
or
 Copy imageCopy Code
Binary
.
endOfMessage
Type: System..::..Boolean
A value that indicates whether this is the last fragment of a message.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also