pusher-lite icon indicating copy to clipboard operation
pusher-lite copied to clipboard

Support Pusher Auth Endpoint

Open ngs opened this issue 9 years ago • 0 comments

Added Auth Endpoint support.

How to use

pusher_client = new PusherClient
  key: (process.env.PUSHER_KEY or pusher_key)
  authEndpoint: 'https://myapi.mydomain.com/auth/pusher'

or

pusher_client = new PusherClient
  key: (process.env.PUSHER_KEY or pusher_key)
  auth:
    # Any of request npm module options: https://git.io/vgBTa
    url: 'https://myapi.mydomain.com/auth/pusher'
    headers:
      'X-CSRF-Token': 'SOME_CSRF_TOKEN'

ngs avatar Feb 08 '16 10:02 ngs