UNPKG

verusd-web

Version:

A Verus Blockchain library that enables a bi-directional communication with the Verus and other Verus PBaas chains.

15 lines (14 loc) 514 B
import WebSocket, { WebSocketServer } from 'ws'; import { DuplexServerInterface, ServerInterface } from './ServerInterface'; export declare class WsServer implements DuplexServerInterface, ServerInterface { private wss?; private config?; private connectionCheckerInterval?; private defaultEventsConfig; constructor(config?: WebSocket.ServerOptions); get socket(): WebSocketServer | undefined; open(): WsServer; close(): boolean; receive(): void; send(payload: any): void; }