import * as cav from "https://deno.land/x/cav@0.0.8/client.ts";
Functions
Constructs a new Client tied to a given base URL. The provided set of packers will be used everywhere that data is packed/unpacked when using this client, including web sockets. | |
Wraps a regular WebSocket with packing functionality and type support. |
Interfaces
Client type representing an Rpc endpoint. Uses the Rpc type definition to determine what the expected arguments and response types are. | |
Initializer arguments for constructing HttpErrors. | |
Cav's WebSocket wrapper interface. | |
Arguments provided to a SocketHandler. There are four event types: "open", "close", "message", "error". Which properties are available depends on the event type. | |
Initializer options to use when upgrading a request into a web socket using
the |
Type Aliases
A Proxied function that wraps | |
Uses the RpcInit type imported from the server to determine what shape the arguments should be in when making requests to a given Rpc. | |
Handler type for the various socket event listeners on the SocketInit. |