Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created Jun 25, 2020
Embed
What would you like to do?
Authenticating using pusher
const channels = new Pusher(APP_KEY, {
cluster: APP_CLUSTER,
authEndpoint: '/your_auth_endpoint'
});
const channel = channels.subscribe('private-<channel-name>');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment