1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-14 18:05:43 +02:00
This commit is contained in:
syuilo
2018-03-07 17:48:32 +09:00
parent 6c495268ae
commit 161fd4afab
37 changed files with 747 additions and 219 deletions

View File

@@ -0,0 +1,19 @@
import Stream from './stream';
/**
* Messaging stream connection
*/
export class MessagingStream extends Stream {
constructor(me, otherparty) {
super('messaging', {
i: me.token,
otherparty
});
(this as any).on('_connected_', () => {
this.send({
i: me.token
});
});
}
}