/quickstart-js

Contains source code for the JavaScript and Node versions of the Quickstart guide

Primary LanguageJavaScriptApache License 2.0Apache-2.0

Ably Quickstart

This repository contains the Quickstart guide JavaScript source code for both the callback and promises interfaces.

There are two folders:

  • promises contains the Quickstart code in Node.js and JavaScript (in index.html) using the promises interface. A usage guide is also provided.
  • callbacks contains the Quickstart code in Node.js using callbacks.

Authentication

You will generally need to point your client at an authentication server by specifying an authUrl. For example:

const ably = new Ably.Realtime.Promise({ authUrl: 'https://ably.com/ably-auth/token/docs' });

NOTE: The authentication server https://ably.com/ably-auth/token/docs is only specified to provide an example and should not be used for production use.