This commit is contained in:
2025-07-03 10:42:39 -04:00
parent dac037809c
commit 70180c5d5f

View File

@ -151,7 +151,7 @@ const postReplyToStatus = async (
}
};
const ws = createWebsocket();
let ws = createWebsocket();
ws.on("upgrade", () => {
console.log(
@ -170,6 +170,10 @@ ws.on("open", () => {
}, 20000);
});
ws.on("pong", (data) => {
console.log(`Pong received: ${JSON.stringify(data.toString("utf-8"))}`);
});
ws.on("message", async (data) => {
try {
const message: WSEvent = JSON.parse(data.toString("utf-8"));