Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created June 25, 2020 11:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save velotiotech/9369051e5661a95352f08b1fdd8bf9ed to your computer and use it in GitHub Desktop.
Save velotiotech/9369051e5661a95352f08b1fdd8bf9ed to your computer and use it in GitHub Desktop.
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