0.1.5 • Published 12 years ago

socket.io-announce v0.1.5

Weekly downloads
13
License
-
Repository
github
Last release
12 years ago

socket.io-announce

Lightweight infrastructure broadcast for use with Socket.io RedisStore

Install

npm install socket.io-announce

Use anywhere in your stack, independent of other socket.io servers.

var announce = require('socket.io-announce').createClient();
announce.emit('status', { msg:'Going down for maintaince in 15 minutes', countdown: 15*60*1000 });

Emit to all users.

announce.send('Hello, world!');
announce.emit('quote', { symbol:'APPL', price: 5000 });

Target specific rooms or namespaces.

announce.in('boardroom').send('Yoyo yo!');`
announce.in('nodeup').emit('tweet', {
  id: '130749992326533122',
  user:'@dshaw',
  text: 'Keeping things small and tightly focused actually makes solving big problems easier.'
});

Sample Apps

License

  • MIT
0.1.5

12 years ago

0.1.4

12 years ago

0.1.3

12 years ago

0.1.2

12 years ago

0.1.1

12 years ago

0.1.0

13 years ago