RoomRPCMethods extension
- on
Methods
-
registerRpcMethod(
String method, RpcRequestHandler handler) → void -
Available on Room, provided by the RoomRPCMethods extension
Register a handler for incoming RPC requests. @param method, the method name to listen for. When a request with this method name is received, the handler will be called. The handler should return a string payload to send back to the caller. If the handler returns null, an error will be sent back to the caller. -
unregisterRpcMethod(
String method) → void -
Available on Room, provided by the RoomRPCMethods extension
Unregister a handler for incoming RPC requests. @param method, the method name to unregister.