UNPKG

@comapeo/ipc

Version:
21 lines (20 loc) 846 B
/** * Thrown server-side when a stale call reaches a project instance that has * already been closed. Rides the standard rpc-reflector error response back * to the client. */ export const ProjectClosedError: import("custom-error-creator").ErrorConstructor<{ readonly code: "PROJECT_CLOSED"; readonly message: "Project is closed"; readonly status: 410; }>; /** * Thrown client-side when a method is called after the CoMapeo core client * (the whole IPC client) has been closed via `closeComapeoCoreClient`. */ export const ClientClosedError: import("custom-error-creator").ErrorConstructor<{ readonly code: "CLIENT_CLOSED"; readonly message: "CoMapeo client is closed"; readonly status: 410; }>; export { ChannelClosedError as RpcChannelClosedError, TimeoutError as RpcTimeoutError } from "rpc-reflector/errors.js";