You are currently viewing the promise-based variant of the Ably JavaScript Client Library SDK. View the callback-based variant here.
Passing callbacks to methods when using the promise-based variant of the API is still possible, however, if a method does not receive a callback then it will instead return a promise.
To get started with the Ably JavaScript Client Library SDK, follow the Quickstart Guide or view the introductions to the realtime and REST interfaces.
Generated using TypeDoc