UNPKG

socket.io-ratelimiter

Version:

NPM module that can be used to rate limit socket.io events. Should not be seen as stable.

24 lines (20 loc) 291 B
class SocketUser { constructor(pID) { this.id = pID; } setID(pID) { this.id = pID; } getID() { return this.id; } toString() { return '#' + this.id; } } module.exports = SocketUser;