Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Send

Sends a message to a specific connection. The message can be binary or UTF8.
Read time 1 minuteLast updated 14 days 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.