Skip to content

Commit

Permalink
Use RTM variable to store exports from SDK module in README
Browse files Browse the repository at this point in the history
  • Loading branch information
satori-avasenin committed May 29, 2017
1 parent 4ffe61e commit 24c3e9d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ npm install 'satori-rtm-sdk'
2. In your application file `<app_name>.js`, use the following code to create an RTM client instance:

```JavaScript
var RTMClient = require("satori-rtm-sdk");
var RTM = require("satori-rtm-sdk");

// create an RTM client instance
var rtm = new RTMClient("your-endpoint", "your-appkey");
var rtm = new RTM("your-endpoint", "your-appkey");
```

**Note**: You can find the application key and endpoint on the **Appkey Info** page for your app in the Developer Portal.
Expand Down Expand Up @@ -135,11 +135,11 @@ Verbose logging of all incoming and outcoming PDUs
You can enable dumping of all PDUs either from your code

```JavaScript
var RTMClient = require("satori-rtm-sdk");
RTMClient.logger.DEBUG = true;
var RTM = require("satori-rtm-sdk");
RTM.logger.DEBUG = true;

// create an RTM client instance
var rtm = new RTMClient("your-endpoint", "your-appkey");
var rtm = new RTM("your-endpoint", "your-appkey");
```

or by setting DEBUG_SATORI_SDK environment variable prior to running your application
Expand Down

0 comments on commit 24c3e9d

Please sign in to comment.