SendMessage
Methods
public bool SendMessage<TTarget>(string methodName, Entity entityId, MessageTarget target, params object[] args) where TTarget : ComponentSends 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 SendMessage(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 SendMessage<TTarget>(string methodName, ClientID clientId, MessageTarget target, params object[] args) where TTarget : ComponentSends 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 SendMessage(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  |