This commit is contained in:
syuilo 2018-04-25 13:48:02 +09:00
parent c7f80182c2
commit 4c9b4cb80d
4 changed files with 53 additions and 35 deletions

View file

@ -0,0 +1,17 @@
import Stream from './stream';
import MiOS from '../../mios';
export class UserListStream extends Stream {
constructor(os: MiOS, me, listId) {
super(os, 'user-list', {
i: me.token,
listId
});
(this as any).on('_connected_', () => {
this.send({
i: me.token
});
});
}
}