Skip to main content

Broadcaster.Broadcast

Declaration#

public static void Broadcast(string channel, string message)

Parameters#

NameDescription
channelChannel to use for message
messageMessage to send

Description#

Broadcast a message to all receivers of a channel

Usage#

Example
Broadcaster.Broadcast("Default", "Hello World!");

Declaration#

public static void Broadcast(Object sender, string channel, string message)

Parameters#

NameDescription
senderSender of the message
channelChannel to use for message
messageMessage to send

Description#

Broadcast a message to all receivers of a channel

Usage#

Example
Broadcaster.Broadcast(this, "Default", "Hello World!");

Declaration#

public static void Broadcast(string channel, string message, Object[] args)

Parameters#

NameDescription
channelChannel to use for message
messageMessage to send
argsArguments for the message

Description#

Broadcast a message to all receivers of a channel

Usage#

Example
Broadcaster.Broadcast("Default", "Hello World!", new object[] { 0, true, Vector3.zero });

Declaration#

public static void Broadcast(Object sender, string channel, string message, Object[] args)

Parameters#

NameDescription
senderSender of the message
channelChannel to use for message
messageMessage to send
argsArguments for the message

Description#

Broadcast a message to all receivers of a channel

Usage#

Example
Broadcaster.Broadcast(this, "Default", "Hello World!", new object[] { 0, true, Vector3.zero });