Table of Contents

SendMessageToAllClients

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

Sends a client message to every client connection.

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 SendMessageToAllClients(Type targetType, string methodName, MessageTarget target, bool sendToSelf, params object[] args)

Sends a client message to every client connection.

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.