Skip to content
Snippets Groups Projects
Commit c27340ed authored by syuilo's avatar syuilo
Browse files

Update README.md

parent 57c6e7f8
No related branches found
No related tags found
No related merge requests found
......@@ -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);
});
```
---
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment