import { type JSONRPCMethods } from "https://dotland.deno.dev/x/json_rpc_ts@v0.2.0/mod.ts";
Any function in method set will accept single params
variable,
should otherwise return/resolve JSONRPCValue
,
or must throw/reject JSONRPCError
If method throws a value that is not JSONRPCError
, it will be treated as JSONRPCInternalError
Note that client is allowed to send no params, meaning that params can also be undefined
,
server may also send result undefined