mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-06-11 15:36:56 +00:00
14 lines
373 B
TypeScript
14 lines
373 B
TypeScript
import Channel from '../channel.js';
|
|
|
|
export default class extends Channel {
|
|
public readonly chName = 'messagingIndex';
|
|
public static shouldShare = true;
|
|
public static requireCredential = true;
|
|
|
|
public async init(params: any) {
|
|
// Subscribe messaging index stream
|
|
this.subscriber.on(`messagingIndexStream:${this.user!.id}`, data => {
|
|
this.send(data);
|
|
});
|
|
}
|
|
}
|