blob: 4c593deb317dfd90fd2ae2203a84e37f92e32b0d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
import Stream from './stream';
import MiOS from '../../mios';
/**
* Messaging stream connection
*/
export class MessagingStream extends Stream {
constructor(os: MiOS, me, otherparty) {
super(os, 'messaging', {
i: me.account.token,
otherparty
});
(this as any).on('_connected_', () => {
this.send({
i: me.account.token
});
});
}
}
|