Created
October 9, 2014 11:29
-
-
Save kpnemo/29c7aeb043b179236f91 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sub.on('subscribe', function(channel){ | |
| console.log('SUBSCRIBED TO CH: ' + channel); | |
| Events.emit('subscribed:' + num, channel); | |
| }); | |
| sub.on('message', function(chanel, message){ | |
| console.log('ONMESSAGE FROM CH: ' + chanel + ' with message ' + message); | |
| }); | |
| sub.subscribe('msg:' + num); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment