RpcHandler

typealias RpcHandler = suspend (RpcInvocationData) -> String

A handler that processes an RPC request and returns a string that will be sent back to the requester. The payload must be less than 15KB in size.

Throwing an RpcError will send the error back to the requester.

See also