mirror of
https://github.com/misskey-dev/misskey
synced 2024-12-27 04:59:10 +09:00
16 lines
357 B
TypeScript
16 lines
357 B
TypeScript
import autobind from 'autobind-decorator';
|
|
import Channel from '../channel';
|
|
|
|
export default class extends Channel {
|
|
public readonly chName = 'drive';
|
|
public readonly shouldShare = true;
|
|
|
|
@autobind
|
|
public async init(params: any) {
|
|
// Subscribe drive stream
|
|
this.subscriber.on(`driveStream:${this.user._id}`, data => {
|
|
this.send(data);
|
|
});
|
|
}
|
|
}
|