Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Broadcast

Sends a message to all of a specific channel's ChannelClient connections.
Read time 1 minuteLast updated 12 days ago

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.