Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bachwehbi committed Feb 2, 2015
1 parent 7619dc3 commit 39539d1
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,16 @@ Remember, Beebotte resource description uses a two levels hierarchy:
});
```

You can use the Channel Token to authenticate the connection. Using the Channel Token grants read and write access to any resource of that channel. This is the recommended authentication sc
heme.
```javascript
//Replace Channel Token by that of your account
var transport = {
type: 'mqtt',
token: 'CHANNEL_TOKEN'
}
```

### Stream Connector - Socket.io transport

```javascript
Expand Down Expand Up @@ -140,6 +150,25 @@ Remember, Beebotte resource description uses a two levels hierarchy:
});
```

You can use the Channel Token to authenticate the connection. Using the Channel Token grants read and write access to any resource of that channel. This is the recommended authentication scheme.
```javascript
//Replace Channel Token by that of your account
var transport = {
type: 'socketio',
token: 'CHANNEL_TOKEN'
}
```

Alternatively, you could specify an authentication endpoint (see (client authentication)[beebotte.com/docs/clientauth])
```javascript
//Replace access key by that of your account
var transport = {
type: 'socketio',
apiKey: 'ACCESS KEY',
auth_endpoint: 'YOUR AUTH ENDPOINT', //See https://beebotte.com/docs/clientauth
}
```

## License
Copyright 2013 - 2014 Beebotte.

Expand Down

0 comments on commit 39539d1

Please sign in to comment.