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