import { TpyWs } from "https://deno.land/x/tpy@v1.0.0-RC/src/ws.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
The proxy stream that ensures the process (or at least the stream) is not terminated.
The raw WebSocket
object.
Methods
Closes the WebSocket connection, reconnection will not be attempted.
Retrieves the workbench URL and ties the WebSocket events to an event emitter.
Adds an event listener to WebSocket events.
Adds an event listener to WebSocket events.
Adds an event listener to WebSocket events.
Adds an event listener to WebSocket events.
Runs the connect
method after the specified reconnection timeout.