Table of Contents

SendMessageToAll

Methods
public bool SendMessageToAll<TTarget>(string methodName, MessageTarget target, bool sendToSelf, params object[] args) where TTarget : Component

Sends a client message to every connection (both clients and simulators).

Parameters
Type Name Description
string methodName
MessageTarget target
bool sendToSelf
object[] args
Returns
Type Description
bool

false if sending has failed for any of the clients.

Type Parameters
Name Description
TTarget

Type of the component that should receive this message.

public bool SendMessageToAll(Type targetType, string methodName, MessageTarget target, bool sendToSelf, params object[] args)

Sends a client message to every connection (both clients and simulators).

Parameters
Type Name Description
Type targetType
string methodName
MessageTarget target
bool sendToSelf
object[] args
Returns
Type Description
bool

false if sending has failed for any of the clients.