文档

Unity Engine

Unity Engine

Broadcast

Sends a message to all of a specific channel's ChannelClient connections.
阅读时间1 分钟最后更新于 2 小时前

Definition

Broadcast(int, byte[])

Sends a message to all of a specific channel's ChannelClient connections.
public static void Broadcast(int channelId, byte[] data)

Parameters

channelId

The ID of the channel to send the message to.

data

The message to send. It can be binary or UTF8.

Broadcast(int, string)

Sends a message to all of a specific channel's ChannelClient connections.
public static void Broadcast(int channelId, string data)

Parameters

channelId

The ID of the channel to send the message to.

data

The message to send. It can be binary or UTF8.