UNPKG

@onekeyfe/blockchain-link

Version:

High-level javascript interface for blockchain communication

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