Skip to content

Commit

Permalink
No need to remove ws session from group onClose
Browse files Browse the repository at this point in the history
  • Loading branch information
rymsha authored Nov 14, 2024
1 parent 2379c0e commit 73e1891
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/framework/code/websockets-3.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ exports.webSocketEvent = function (event) {
}

if (event.type == 'close') {
// Remove client from a group
webSocketLib.removeFromGroup('chat', event.session.id);
log.info(`User left the chat`);
}

};

0 comments on commit 73e1891

Please sign in to comment.