import { TpyWs } from "https://deno.land/x/tpy@v1.0.0-RC/mod.ts";
An EventEmitter forwarder that keeps an emitter alive while a WebSocket
reconnects. Listens to a deployment's console output.
This class creates a parent emitter over a child WebSocket
emitter, forwarding events and
persists when the child emitter terminates, maintaining active listeners and allowing reconnection
with customizable timeouts.
Constructors
Properties
Methods
on(type: "close", callback: (data: CloseEvent) => void): EventEmitter
Adds an event listener to WebSocket events.
on(type: "error", callback: (data: ErrorEvent | Event) => void): EventEmitter
Adds an event listener to WebSocket events.
on<T extends unknown[]>(type: "message", callback: (data: Unpacked<PylonWebSocket.Response<T>>) => void): EventEmitter
Adds an event listener to WebSocket events.