orphan: send CLOSE

Signed-off-by: Yonle <yonle@lecturify.net>
This commit is contained in:
Yonle
2024-01-03 14:41:22 +07:00
parent 7df3a272af
commit 7d5ab86756

View File

@@ -130,6 +130,11 @@ module.exports = (ws, req) => {
// Let the garbage collector do the thing. No need to add ws.reconnectTimeout.delete(i);
}
for (i of ws.subs) {
direct_bc(["CLOSE", i[0]], ws.id);
cache_bc(["CLOSE", i[0]], ws.id);
}
onClientDisconnect();
});