mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix(api): apply feedback
This commit is contained in:
@@ -435,8 +435,9 @@ export class WebsocketGateway
|
||||
if (!sessionId) {
|
||||
throw new Error('SessionId is required!');
|
||||
}
|
||||
const allSockets = await this.io.fetchSockets();
|
||||
|
||||
return (await this.io.fetchSockets()).filter(
|
||||
return allSockets.filter(
|
||||
({ handshake, data }) =>
|
||||
!handshake.query.channel && data.sessionID === sessionId,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user