@fougere/transport-http

The call contract on the wire, in JSON-RPC 2.0 (server + client).

Entries: @fougere/transport-http · @fougere/transport-http/receive · @fougere/transport-http/client

What you import

name
createHttpTransport
frameCallFrame a call as a JSON-RPC request.
unframeResponseUnframe a JSON-RPC response — the result, or the revived FougereError thrown.
handleRpcA peer's call, through the app's cycle when the receiver holds one.
pageDoorThe door a page calls through: its state is what the host resolved, and it may not write args.
peerDoorThe door a process calls another through: verify establishes its state, and what it judged is not judged again.
receive
maxFrameBytes
serve
PARSE_ERROR

Types

TypeScript types only — they do not run. Import them with import type to type your own code: a variable, a parameter, an option object.

name
ReceiveOptionsWhat a receiver does with the caller's envelope.
RpcCallOne call, unframed.
PageDoorOptionsWhat a host hands the door a page calls through.
RunningReceiver
RpcResponse
Built with Fougere and Nuxt, hosted on GitHub Pages.