Skip to content

Commit 799e477

Browse files
authored
Update README.md
1 parent 1685d65 commit 799e477

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,12 @@ There are several ways:
4545

4646
This library uses RxJs/AjaxObserverable which is meant for use in a DOM environment. That doesn't mean you can't also use it from Node though, you just need to do a couple of extra things:
4747

48-
1. `npm install --save xhr2`
48+
1. `npm install --save ws xhr2`
4949
2. Add the following towards the top of your main application file:
5050

5151
```typescript
52-
global.XMLHttpRequest = require("xhr2");
52+
global.XMLHttpRequest = require('xhr2');
53+
global.WebSocket = require('ws');
5354
```
5455

5556
## How to create and use a directLine object

0 commit comments

Comments
 (0)