Closed icetrust0212 closed 1 year ago
looks like you repository is private
@icetrust0212 repo is not publicly accessible.
Are you sure this is related to NestJS, not socket.io?
Socket.io can be configured with maxConnections. Is the number of connections configured relatively low?
We rely on socket.io defaults
Is there an existing issue for this?
Current behavior
Nestjs backend crash when I was doing performance test. I am sending large amount of websocket connection request and it crashes backend.
Minimum reproduction code
https://github.com/balance_capital/binary-options-backend
Steps to reproduce
No response
Expected behavior
I should be able to implement throttle guard for websocket connection request in websocket gateway. I know there is built-in websocket throttler in nestjs. When I use it for @SubscribeEvent('message'), it worked well. But I noticed it doesn't work for websocket connection request.
Package
Other package
No response
NestJS version
No response
Packages versions
Node.js version
16.19.1
In which operating systems have you tested?
Other
No response