mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-12-04 11:47:27 +00: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
|
## 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