github.com/animir/node-…
> Limit number of events by IP, uniqueUserId or/and socket.id with rate-limiter-flexible package.
hope it helps :-)