UNPKG

bxgateway

Version:

Package for connecting to Bloxroute's gateways

14 lines (13 loc) 471 B
/// <reference types="node" /> import WebSocket from 'ws'; import { EventEmitter } from 'events'; import { StreamOptions, StreamTopic } from './interfaces'; import { Debugger } from 'debug'; export default class BxgatewayBase extends EventEmitter { _gw: WebSocket; private readonly _debug; constructor(dbg: Debugger); subscribe(topic: StreamTopic, options?: StreamOptions): void; sendTransaction(signedTransaction: string): void; close(): void; }