summaryrefslogtreecommitdiff
path: root/src/server/api/stream/channels/drive.ts
blob: 807fc93cd092ec6b1313e6071e442066abf2e39d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import autobind from 'autobind-decorator';
import Channel from '../channel';

export default class extends Channel {
	@autobind
	public async init(params: any) {
		// Subscribe drive stream
		this.subscriber.on(`driveStream:${this.user._id}`, data => {
			this.send(data);
		});
	}
}