Skip to content

Commit aaacda7

Browse files
committed
fix
1 parent 391a74b commit aaacda7

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
@@ -5,7 +5,7 @@ import { WsException } from '@nestjs/websockets';
55

66
@Injectable()
77
export class WsSubscriptionLimiterGuard implements CanActivate {
8-
static MAX_ROOMS = 5; // TODO: adjust limit
8+
static MAX_ROOMS = 5 + 1; // TODO: adjust limit (5 subscriptions + 1 default room client id)
99

1010
canActivate(context: ExecutionContext): boolean {
1111
const client: Socket = context.switchToWs().getClient();

0 commit comments

Comments
 (0)