yumechi-no-kuni/src/client/app/common/scripts/streaming/user-list.ts

18 lines
296 B
TypeScript
Raw Normal View History

2018-04-24 23:48:02 -05:00
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
});
});
}
}