mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-08 13:44:39 +02:00
Fix disconnect of WebSocket
This commit is contained in:
parent
ff5896e80c
commit
64aa63e8b5
1 changed files with 3 additions and 2 deletions
|
@ -59,7 +59,8 @@ function WebSocketClient(ws, req, serverType) {
|
||||||
});
|
});
|
||||||
|
|
||||||
ws.on('close', () => {
|
ws.on('close', () => {
|
||||||
this.end();
|
// we'll remove client connection which will in turn end() via our SocketBridge above
|
||||||
|
return this.emit('end');
|
||||||
});
|
});
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue