This demo application shows you how to authenticate with Ably using various different methods. It comprises an authentication server and a client that enables you to choose which authentication method to use.
To run it:
- Rename
sample.env
to.env
and enter your API key secret. - Run
npm install
to install dependencies. - Run
npm start
to start the server. - Visit
https://localhost:8080
in your browser. - Select an authentication method and then click:
- Connect: To authenticate with Ably using your chosen authentication method
- Subscribe: To subscribe to
testChannel
- Test: To publish to
testChannel
- Disconnect: To terminate the connection