Functions

@system-inc/base-foundation · 515c140 · 2 symbols

rpcErrorNotFound(rpc: RpcCall): RpcFailure

View source ↗

A @WebSocketRpc() procedure is fire-and-forget (returns Promise<void>): the driver pushes the event over the socket and the client sends no reply. Synthesize a well-formed RpcSuccess response so the shared RpcClientDriver.handleResponse accepts it — the bodyless ok() the socket drivers used to return has no JSON content-type or RpcResponse body, so handleResponse always rejected it and every delivered push threw.

webSocketRpcSuccessResponse(rpcCall: RpcCall): Response

View source ↗