From 4c9b4cb80d221bf2316cf0c7133813c30ffb377b Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 25 Apr 2018 13:48:02 +0900 Subject: wip --- src/client/app/common/scripts/streaming/user-list.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/client/app/common/scripts/streaming/user-list.ts (limited to 'src/client/app/common/scripts') diff --git a/src/client/app/common/scripts/streaming/user-list.ts b/src/client/app/common/scripts/streaming/user-list.ts new file mode 100644 index 0000000000..30a52b98dd --- /dev/null +++ b/src/client/app/common/scripts/streaming/user-list.ts @@ -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 + }); + }); + } +} -- cgit v1.2.3-freya