Skip to content

Commit

Permalink
elaborate on guides
Browse files Browse the repository at this point in the history
  • Loading branch information
ianjennings committed Jan 6, 2017
1 parent 54c50f3 commit c8688e3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
6 changes: 4 additions & 2 deletions guides/pubnub.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
## PubNub
## Setting up Rltm.js with PubNub

PubNub is a cloud realtime service. You only need to supply your PubNub publish and subscribe keys.
PubNub is a cloud realtime service. You only need to supply your PubNub publish and subscribe keys. PubNub will handle scaling, message delivery, etc.

You can get your publish and subscribe keys from [the pubnub admin panel](https://admin.pubnub.com/).

```js
let client = rltm({
Expand Down
9 changes: 5 additions & 4 deletions guides/socketio.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
## Socket.io
## Setting up Rltm.js with Socket.io

You must run a Socket.io server yourself for this to work.
You must run a Socket.io server yourself for this to work. You can find a fully
featured example in the root of this repository called ```socket.io-server.js```.

```
```sh
node ./socket.io-server.js
```

Then you can configure rltm to look for the server at that endpoint.
Once the server is running, configure rltm to look for the server at that endpoint.

```js
let client = rltm({
Expand Down

0 comments on commit c8688e3

Please sign in to comment.