UNPKG

barracuda-client-api

Version:

API Client to connect to Barracuda Enterprise Service Bus

14 lines 684 B
import { IBarracudaWebSocket } from "./IBarracudaWebSocket"; export declare class BarracudaBrowserWebSocket implements IBarracudaWebSocket { private _endpoint; private _ws; constructor(endpoint: string); close(code: number, reason: string): void; on(eventType: "message", onEvent: (msg: any) => void): void; on(eventType: "error", onEvent: (err: any) => void): void; once(eventType: "message", onEvent: (msg: any) => void): void; once(eventType: "open", onEvent: () => void): void; once(eventType: "close", onEvent: (err: number, reason: string) => void): void; send(msg: string): void; } //# sourceMappingURL=BarracudaBrowserWebSocket.d.ts.map