Our new developer documentation is now available. Please check it out!
Room.SendRpc
public virtual Task<RpcResult> SendRpc(string method, Action<IMsgPackWriter> builder)
Send registered RPCs to the server. (set by Room)
Info
Be aware that the task is created for resolving Msgpack request/response result as Room. Unless handled correctly should not be awaited by the corresponding context.
Parameters
Name | Type | Description |
---|---|---|
method | String | RPC method |
builder | Action<IMsgPackWriter> | Msgpack builder |
Returns
Type | Description |
---|---|
Task<RpcResult> | Thunk task that will not run (see |