Skip to content

Instantly share code, notes, and snippets.

Created Jun 25, 2020
What would you like to do?
pusher client setup
// Here my-channel is the channel name
// all the event published to this channel would be available
// once you subscribe to the channel and start listing to it.
var channel = pusher.subscribe('my-channel');
channel.bind('my-event', function(data) {
alert('An event was triggered with message: ' + data.message);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment