SendClientMessage
Methods
public bool SendClientMessage<TTarget>(string methodName, MessageTarget target, params object[] args) where TTarget : Component
Sends a client message to the owner of this connection.
Parameters
| Type | Name | Description | 
|---|---|---|
| string | methodName | |
| MessageTarget | target | |
| object[] | args | 
Returns
| Type | Description | 
|---|---|
| bool | false if connection has no associated CoherenceSync, or if sending has failed.  | 
    
Type Parameters
| Name | Description | 
|---|---|
| TTarget | Type of the component that should receive this message.  | 
    
public bool SendClientMessage(Type targetType, string methodName, MessageTarget target, params object[] args)
Sends a client message to the owner of this connection.
Parameters
| Type | Name | Description | 
|---|---|---|
| Type | targetType | |
| string | methodName | |
| MessageTarget | target | |
| object[] | args | 
Returns
| Type | Description | 
|---|---|
| bool | false if connection has no associated CoherenceSync, or if sending has failed.  | 
    
public bool SendClientMessage<TTarget>(string methodName, Entity entityID, MessageTarget target, params object[] args) where TTarget : Component
Sends a client message to the connection whose EntityId matches the
entityId.
Parameters
| Type | Name | Description | 
|---|---|---|
| string | methodName | |
| Entity | entityID | |
| MessageTarget | target | |
| object[] | args | 
Returns
| Type | Description | 
|---|---|
| bool | false if connection for a given   | 
    
Type Parameters
| Name | Description | 
|---|---|
| TTarget | Type of the component that should receive this message.  | 
    
public bool SendClientMessage(Type targetType, string methodName, Entity entityID, MessageTarget target, params object[] args)
Sends a client message to the connection whose EntityId matches the
entityId.
Parameters
| Type | Name | Description | 
|---|---|---|
| Type | targetType | |
| string | methodName | |
| Entity | entityID | |
| MessageTarget | target | |
| object[] | args | 
Returns
| Type | Description | 
|---|---|
| bool | false if connection for a given   | 
    
public bool SendClientMessage<TTarget>(string methodName, ClientID clientID, MessageTarget target, params object[] args) where TTarget : Component
Sends a client message to the connection whose EntityId matches the
entityId.
Parameters
| Type | Name | Description | 
|---|---|---|
| string | methodName | |
| ClientID | clientID | |
| MessageTarget | target | |
| object[] | args | 
Returns
| Type | Description | 
|---|---|
| bool | false if connection for a given   | 
    
Type Parameters
| Name | Description | 
|---|---|
| TTarget | Type of the component that should receive this message.  | 
    
public bool SendClientMessage(Type targetType, string methodName, ClientID clientID, MessageTarget target, params object[] args)
Sends a client message to the connection whose ClientId matches the clientId.
Parameters
| Type | Name | Description | 
|---|---|---|
| Type | targetType | |
| string | methodName | |
| ClientID | clientID | |
| MessageTarget | target | |
| object[] | args | 
Returns
| Type | Description | 
|---|---|
| bool | false if connection for a given   |