blob: dbdd8afb0a45da7671ad048bae86223b655732e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import autobind from 'autobind-decorator';
import Channel from '../channel';
export default class extends Channel {
public readonly chName = 'userList';
public static shouldShare = false;
public static requireCredential = false;
@autobind
public async init(params: any) {
const listId = params.listId as string;
// Subscribe stream
this.subscriber.on(`userListStream:${listId}`, data => {
this.send(data);
});
}
}
|