From fa3481b071f93758829690a891c6bb8ee828d1e4 Mon Sep 17 00:00:00 2001 From: Julien Calixte Date: Sun, 8 Feb 2026 13:52:03 +0100 Subject: [PATCH] feat: on error too --- main.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.ts b/main.ts index 7313f6b..4c4b1bf 100644 --- a/main.ts +++ b/main.ts @@ -22,6 +22,10 @@ jetstream.on("close", () => { console.log("Connection closed, PartySocket will reconnect automatically"); }); +jetstream.on("error", (error) => { + console.log("Connection closed with error", error); +}); + console.log("launching jetstream") jetstream.start();