Looks nicer this way
This commit is contained in:
parent
94943fd344
commit
5f813a7bf0
2 changed files with 2 additions and 2 deletions
|
|
@ -7,7 +7,7 @@ npm install --save @eyevinn/srt
|
|||
```
|
||||
|
||||
```
|
||||
const SRT = require('@eyevinn/srt').SRT;
|
||||
const { SRT } = require('@eyevinn/srt');
|
||||
|
||||
const srt = new SRT();
|
||||
const socket = srt.createSocket();
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
const SRT = require('./index.js').SRT;
|
||||
const { SRT } = require('./index.js');
|
||||
|
||||
const srt = new SRT();
|
||||
const socket = srt.createSocket();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue