UNPKG

@ethicdevs/react-global-state-hooks-debugger

Version:

A small websocket based debugger for use with the react-global-state-hooks library

13 lines (12 loc) 311 B
import { ProtocolPacket } from "./protocol"; export declare enum WS_READY_STATE { Connecting = 0, Open = 1, Closing = 2, Closed = 3 } export interface WsClient { readyState: WS_READY_STATE; send(packet: ProtocolPacket): Promise<void>; stop(reason?: string | Error): Promise<void>; }