yumechi-no-kuni/src/client/app/common/scripts/streaming/user-list.ts
2018-04-25 13:48:02 +09:00

17 lines
296 B
TypeScript

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
});
});
}
}