UNPKG

socket-rate-limiter

Version:

Limit the connection requestion of a socket connection based on IP address.

9 lines (5 loc) 388 B
# Rate Limiter for Web Socket ### Limit the connection requestion of a socket connection based on IP address. ![alt text](https://i.ibb.co/XDtcB1F/3.png) ### Token Based rate limiter for web socket to prevent DOS Attack and bulk connection request. ##### Just place rate limiter in socket on connection event, Allow tokens of your own choice for 1 minutes duration and done.