Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

WebSocketClient.Send Method

Namespace: Rebex.Net
Assembly: Rebex.WebSocket.dll (version 7.0.9147)

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

Text
or
Binary
.

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

Text
or
Binary
.

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.

In This Article
  • Send(ArraySegment<Byte>, WebSocketMessageType, Boolean)
  • Send(ArraySegment<Byte>, WebSocketMessageType, WebSocketMessageFlags)
  • Send(Byte[])
  • Send(String)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies