Skip to content

Commit bfebca1

Browse files
committed
fixup! Add javascript getting started to pubsub
1 parent 0a9d837 commit bfebca1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

content/getting-started/javascript.textile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ This guide will get you started with Ably Pub/Sub in JavaScript.
88

99
It will take you through the following steps:
1010

11-
* Complete the prerequisites before you begin.
1211
* Create a client and establish a realtime connection to Ably.
1312
* Attach to a channel and subscribe to its messages.
1413
* Publish a message to the channel for your client to receive.
@@ -19,13 +18,16 @@ h2(#prerequisites). Prerequisites
1918

2019
* Sign up for an Ably account.
2120
* Create a new app, and create your first API key.
22-
** Your API key will need the @publish@, @subscribe@, @presence@ and @history@ capabilities.
21+
* Your API key will need the @publish@, @subscribe@, @presence@ and @history@ capabilities.
2322
* Install the Ably CLI: @npm install -g @ably/cli@
2423
* Run @ably login@ in the terminal and follow the prompts to provide an access token to the Ably CLI.
2524
* Set the default app to use with @ably apps switch@ and select an API key to use for operations with @ably auth keys switch@.
26-
2725
* Install the Ably Pub/Sub JavaScript SDK in a new project within your IDE: @npm install ably@
2826

27+
<aside data-type='note'>
28+
<p>The code examples in this guide include a demo API key. If you wish to interact with the Ably CLI and view outputs within your Ably account, ensure that you replace them with your own API key.</p>
29+
</aside>
30+
2931
h2(#step-1). Step 1: Connect to Ably
3032

3133
Clients establish a connection with Ably when they instantiate an SDK. This enables them to send and receive messages in realtime across channels.

0 commit comments

Comments
 (0)