Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify how to instantiate ably-js client from CDN in Spaces docs #2024

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions content/spaces/setup.textile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ Reference the Ably JavaScript SDK and the Spaces SDK within the @<head>@ of your
<script src="https://cdn.ably.com/spaces/0.1.2/iife/index.bundle.js"></script>
```

<aside data-type='note'>
If you are using the CDN version of the Ably client, replace the call to `new Realtime.Promise` in the next section with `new Ably.Realtime.Promise`.
</aside>

h2(#instantiate). Instantiate

Instantiate a realtime client using the Ably JavaScript SDK and pass the generated client into the Spaces constructor:
Expand Down