An open API service indexing awesome lists of open source software.

https://github.com/ably/js-publish-subscribe-tutorial

Solution code for the JavaScript version of the pub/sub tutorial
https://github.com/ably/js-publish-subscribe-tutorial

Last synced: 3 months ago
JSON representation

Solution code for the JavaScript version of the pub/sub tutorial

Awesome Lists containing this project

README

          

# Publish/Subscribe Tutorial Code (JavaScript version)

This is the solution code for the JavaScript version of the [Publish/Subscribe Messaging App tutorial](https://ably.com/tutorials/publish-subscribe).

To run the demo, do the following:

1. Clone the repo locally:

```sh
git clone https://github.com/ably/js-publish-subscribe-tutorial.git
```

2. Add your [Ably API key](https://faqs.ably.com/setting-up-and-managing-api-keys) to `example.html` by replacing `YOUR_ABLY_API_KEY` with your own API key.
3. In a new browser tab, open your browser's developer tools.
4. Open the `example.html` file in the browser tab and inspect the console output.