blob: 1fff2286b3c189d507720565240f5f34f1952dec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
});
});
}
}
|