Created
November 15, 2018 17:43
-
-
Save itsdevcoffee/4aebd32142cf1ff11977ae9836e56d23 to your computer and use it in GitHub Desktop.
This file contains 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
var Pusher = require('pusher'); | |
var pusher = new Pusher({ | |
appId: '645212', | |
key: PUSHER_KEY, | |
secret: PUSHER_SECRET, | |
cluster: 'us2', | |
encrypted: true | |
}); | |
pusher.trigger('my-channel', 'my-event', { | |
"message": "hello world" | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment