Skip to content

Commit

Permalink
Clarify how to instantiate ably-js client from SDK in Spaces docs
Browse files Browse the repository at this point in the history
See commit 9de7495 in Spaces SDK repo.
  • Loading branch information
lawrence-forooghian committed Oct 10, 2023
1 parent 4f5e53f commit 3a74b63
Showing 1 changed file with 4 additions and 0 deletions.
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

0 comments on commit 3a74b63

Please sign in to comment.