UNPKG

swtc-lib

Version:

websocket access for jingtum blockchain

15 lines (14 loc) 420 B
/// <reference types="node" /> import { EventEmitter } from "events"; declare class WSWrapper extends EventEmitter { static CONNECTING: number; static OPEN: number; static CLOSING: number; static CLOSED: number; private _ws; constructor(url: any, _protocols: any, _websocketOptions: any); close(): void; send(message: any): void; get readyState(): number; } export default WSWrapper;