Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/tpy/src/ws.ts

🔑 A strongly typed Pylon API client.
Latest
import * as tpy 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.

Pylon uses WebSockets to listen to a deployment's console out/err. While this idea is simple enough, the host closes the socket on an interval (by design), having to make the user reconnect to the socket to continue listening.

Classes

An EventEmitter forwarder that keeps an emitter alive while a WebSocket reconnects. Listens to a deployment's console output.