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.

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

See also