talker-client
v1.4.1
Published
A client for the Talker chat service
Downloads
7
Readme
What is this?
A high-ish level interface for Talker
How do I use it?
var Client = require('talker-client')
, client = new Client({ token: 'your token here' })
, room = client.join('your room name here')
room.on('users', function(message) {
console.log('users currently connected', message.users)
message.users.forEach(function(user) {
if (user.name === 'paul.sweeney') { room.message('oh hai, Paul!') }
})
setTimeout(function() { room.leave() }, 3000)
})