b9cb6d1c10
将来ESMに移行しやすいように Related: #7658 なんかmochaが起動しなくなってるけど理由不明 すぐ直したい
16 lines
427 B
TypeScript
16 lines
427 B
TypeScript
import autobind from 'autobind-decorator';
|
|
import Channel from '../channel.js';
|
|
|
|
export default class extends Channel {
|
|
public readonly chName = 'messagingIndex';
|
|
public static shouldShare = true;
|
|
public static requireCredential = true;
|
|
|
|
@autobind
|
|
public async init(params: any) {
|
|
// Subscribe messaging index stream
|
|
this.subscriber.on(`messagingIndexStream:${this.user!.id}`, data => {
|
|
this.send(data);
|
|
});
|
|
}
|
|
}
|