Skip to content

Commit 7b992d7

Browse files
committed
fix
1 parent 6e35ee9 commit 7b992d7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utils/ws.subscription.limiter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export class WsSubscriptionLimiterGuard implements CanActivate {
1919
throw new WsException(`Maximum number of ${this.apiConfigService.getWebsocketMaxSubscriptionsPerInstance()} global subscriptions accepted by server reached!`);
2020
}
2121

22-
if (totalClientRooms >= this.apiConfigService.getWebsocketMaxSubscriptionsPerClient()) {
22+
if (totalClientRooms >= this.apiConfigService.getWebsocketMaxSubscriptionsPerClient() + 1) { // 1 default room with client id
2323
throw new WsException(`Maximum number of ${this.apiConfigService.getWebsocketMaxSubscriptionsPerClient()} subscriptions per client reached!`);
2424
}
2525

0 commit comments

Comments
 (0)