Developer Documentation

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

NameTypeDescription
methodStringRPC method
builderAction<IMsgPackWriter>Msgpack builder

Returns

TypeDescription
Task<RpcResult>Thunk task that will not run (see )