文档

Unity Engine

Unity Engine

Send

Sends a message to a specific connection. The message can be binary or UTF8.
阅读时间1 分钟最后更新于 2 小时前

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.