|
|
|
@ -7,6 +7,7 @@ export class WsThrottlerGuard extends ThrottlerGuard {
@@ -7,6 +7,7 @@ export class WsThrottlerGuard extends ThrottlerGuard {
|
|
|
|
|
try { |
|
|
|
|
const client = context.switchToWs().getClient() |
|
|
|
|
|
|
|
|
|
console.log('conn', client.conn) |
|
|
|
|
const ip = client.conn.remoteAddress |
|
|
|
|
const key = this.generateKey(context, ip) |
|
|
|
|
const { totalHits } = await this.storageService.increment(key, ttl) |
|
|
|
|