Skip to content

Commit

Permalink
Close all connections, including lost connections on shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-bus-stop committed Dec 7, 2024
1 parent 1ddcfd8 commit 3dd100b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SocketServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ class SocketServer {
clearInterval(this.#pinger);

this.#closing = true;
for (const connection of this.#wss.clients) {
for (const connection of this.#connections) {
connection.close();
}

Expand Down

0 comments on commit 3dd100b

Please sign in to comment.