socket-rate-limiter

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

Usage no npm install needed!

<script type="module">
  import socketRateLimiter from 'https://cdn.skypack.dev/socket-rate-limiter';
</script>

README

Rate Limiter for Web Socket

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

alt text

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.