Skip to content

Commit 3a74b63

Browse files
Clarify how to instantiate ably-js client from SDK in Spaces docs
See commit 9de7495 in Spaces SDK repo.
1 parent 4f5e53f commit 3a74b63

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: content/spaces/setup.textile

+4
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ Reference the Ably JavaScript SDK and the Spaces SDK within the @<head>@ of your
5555
<script src="https://cdn.ably.com/spaces/0.1.2/iife/index.bundle.js"></script>
5656
```
5757

58+
<aside data-type='note'>
59+
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`.
60+
</aside>
61+
5862
h2(#instantiate). Instantiate
5963

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

0 commit comments

Comments
 (0)