Remote / API
foldkit-remote/port
foldkit-remote/port: Remote over a MessagePort, for a server in a
worker or in the page (a sandbox). It speaks Effect's own RPC worker
protocol over the port, so reads, queries, mutations and live streams, their
typed errors and interruption all cross it; foldkit-remote-server/port
serves the other end.
Built on effect/workers alone: a MessagePort platform for the client and
a one-port runner for the server, no browser package.
Functions
port | Remote's client over a MessagePort: portProtocol under Remote.clientLayer. |
portProtocol | Effect's RPC worker protocol over a MessagePort: what port runs on, for an RPC client of RemoteRpc made by hand. open is called for each connection the… |
portRunner | The server's side of one port: Effect's WorkerRunnerPlatform over a single MessagePort, for RpcServer.layerProtocolWorkerRunner, and closed, which completes… |