node package manager
Stop writing boring code. Discover, share, and reuse within your team. Create a free org »



NPM version Build status Test coverage Dependency Status License Downloads Gittip

Experimental chat system module using Redis for pub/sub, persisting to MongoDB. Only streams are exposed - this module does not decide how the client receives the data. Socket.IO? WebRTC? ¯\_(ツ)_/¯

Implementation notes.

  • Assumes there's a channel collection with all the channels. This module differentiates channels by their _id.
  • Assumes there's a user collection with all users. Thus, "anonymous" users are not supported (give them their own _id). This module differentiates channels by their _id.
  • Requires (or rather recommends) an entirely separate DB for storing channels. There's a collection per channel, with each _id being the name of the channel.