A library for using Socket.IO rooms and namespaces across multiple Node.js processes via Redis. Version 0.1.1 (unmaintained). It provides a Redis-backed pub/sub mechanism to synchronize room membership, broadcasts, and user tracking in clustered Socket.IO deployments. Key differentiators: simple API for joining/leaving rooms, broadcasting, and querying room members across nodes. However, it is outdated and relies on Socket.IO v0.9.x, incompatible with modern Socket.IO versions.
npm install node-redis-roomNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes node-redis-room with Socket.IO and Redis, joins a socket to a room, broadcasts a join event, handles disconnect, and queries room members.
Use socket.io-redis or modern clustering solutions.
Consider socket.io-redis for Redis-based Socket.IO clustering.
Call init() once at application startup, not per-connection.
Always include 'id' and 'connectionId' in the user object.
Ensure nodeRedisRoom.init(io, crud, sub, pub) is called once at startup before any socket events.
Only call join() or leave() within a socket 'connection' event handler using the socket parameter.