mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-24 17:33:08 +02:00
Update README.md
This commit is contained in:
parent
57c6e7f823
commit
c27340eddc
1 changed files with 9 additions and 1 deletions
10
README.md
10
README.md
|
@ -28,7 +28,15 @@ const meta = await cli.request('meta', { detail: true });
|
|||
```
|
||||
|
||||
## Streaming
|
||||
todo
|
||||
``` ts
|
||||
import * as Misskey from 'misskey-js';
|
||||
|
||||
const stream = new Misskey.Stream('https://misskey.test', { token: 'TOKEN' });
|
||||
const mainChannel = stream.useSharedConnection('main');
|
||||
mainChannel.on('notification', notification => {
|
||||
console.log('notification received', notification);
|
||||
});
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
|
|
Loading…
Reference in a new issue