Skip to content

Instantly share code, notes, and snippets.

@rachitpsolanki
Created November 12, 2019 07:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rachitpsolanki/27037d160ce21dffe11858f79f9ac0dd to your computer and use it in GitHub Desktop.
Save rachitpsolanki/27037d160ce21dffe11858f79f9ac0dd 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