feat: on error too
This commit is contained in:
4
main.ts
4
main.ts
@@ -22,6 +22,10 @@ jetstream.on("close", () => {
|
|||||||
console.log("Connection closed, PartySocket will reconnect automatically");
|
console.log("Connection closed, PartySocket will reconnect automatically");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
jetstream.on("error", (error) => {
|
||||||
|
console.log("Connection closed with error", error);
|
||||||
|
});
|
||||||
|
|
||||||
console.log("launching jetstream")
|
console.log("launching jetstream")
|
||||||
|
|
||||||
jetstream.start();
|
jetstream.start();
|
||||||
|
|||||||
Reference in New Issue
Block a user