Skip to content

Commit 606af6b

Browse files
Update content/security/rate-limiting.md
1 parent 1bb9619 commit 606af6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/security/rate-limiting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export class WsThrottlerGuard extends ThrottlerGuard {
120120
121121
There's a few things to keep in mind when working with WebSockets:
122122

123-
- You cannot bind the guard with `APP_GUARD` or `app.useGlobalGuards()` due to how Nest binds global guards.
123+
- Guard cannot be registered with the `APP_GUARD` or `app.useGlobalGuards()`
124124
- When a limit is reached, Nest will emit an `exception` event, so make sure there is a listener ready for this
125125

126126
> info **Hint** If you are using the `@nestjs/platform-ws` package you can use `client._socket.remoteAddress` instead.

0 commit comments

Comments
 (0)