Created
October 9, 2014 11:28
-
-
Save kpnemo/7864c34abf68494b2e17 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