Yet another pusher client for node.js
This is a (diverged) fork of Abhishiv's work at https://github.com/abhishiv/pusher-node-client, so credit to him for writing this in the first place.
The main difference is that nusher
is using https://github.com/hij1nx/EventEmitter2 so you could invoke onAny
on a channel.
How to use it
PusherClient = pusher_client = appId: processenvPUSHER_APP_ID or app_id key: processenvPUSHER_KEY or pusher_key secret: processenvPUSHER_SECRET or pusher_secret pusher_clienton 'connect' -> channel = pusher_client channelon 'success' -> channelon 'pusher_internal:member_removed' data -> consolelog 'member_removed' channelon 'pusher_internal:member_added' data -> consolelog 'member_added' pusher_client
License
This code is free to use under the terms of the MIT license.