blob: 140255acd11dfd27b3700547fd10d3379299eb11 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import Channel from '../channel.js';
export default class extends Channel {
public readonly chName = 'drive';
public static shouldShare = true;
public static requireCredential = true;
public async init(params: any) {
// Subscribe drive stream
this.subscriber.on(`driveStream:${this.user!.id}`, data => {
this.send(data);
});
}
}
|