Documentation

Unity Engine

Unity Engine

Send

Sends a message to a specific connection. The message can be binary or UTF8.
Read time 1 minuteLast updated a month ago

Definition

Send(int, byte[])

Sends a message to a specific connection. The message can be binary or UTF8.
public static void Send(int connectionId, byte[] data)

Parameters

connectionId

The connection ID. This matches channelClientId.

data

Data to send to the connected client.

Send(int, string)

Sends a message to a specific connection. The message can be binary or UTF8.
public static void Send(int connectionId, string data)

Parameters

connectionId

The connection ID. This matches channelClientId.

data

Data to send to the connected client.