feat: on error too

This commit is contained in:
Julien Calixte
2026-02-08 13:52:03 +01:00
parent d9d794ba1d
commit fa3481b071

View File

@@ -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();