UNPKG

@jsonjoy.com/reactive-rpc

Version:

Reactive-RPC is a library for building reactive APIs over WebSocket, HTTP, and other RPCs.

7 lines (6 loc) 285 B
export type WebSocketBase = Pick<WebSocket, 'binaryType' | 'readyState' | 'bufferedAmount' | 'onopen' | 'onclose' | 'onerror' | 'onmessage' | 'close' | 'send'>; export interface CloseEventBase { readonly code: number; readonly reason: string; readonly wasClean: boolean; }