なんかもうめっちゃ変えた
This commit is contained in:
parent
d9ab03f086
commit
b75184ec8e
946 changed files with 41219 additions and 28839 deletions
|
|
@ -1,9 +1,10 @@
|
|||
import Xev from 'xev';
|
||||
import { Inject, Injectable } from '@nestjs/common';
|
||||
import Channel from '../channel.js';
|
||||
|
||||
const ev = new Xev();
|
||||
|
||||
export default class extends Channel {
|
||||
class ServerStatsChannel extends Channel {
|
||||
public readonly chName = 'serverStats';
|
||||
public static shouldShare = true;
|
||||
public static requireCredential = false;
|
||||
|
|
@ -40,3 +41,20 @@ export default class extends Channel {
|
|||
ev.removeListener('serverStats', this.onStats);
|
||||
}
|
||||
}
|
||||
|
||||
@Injectable()
|
||||
export class ServerStatsChannelService {
|
||||
public readonly shouldShare = ServerStatsChannel.shouldShare;
|
||||
public readonly requireCredential = ServerStatsChannel.requireCredential;
|
||||
|
||||
constructor(
|
||||
) {
|
||||
}
|
||||
|
||||
public create(id: string, connection: Channel['connection']): ServerStatsChannel {
|
||||
return new ServerStatsChannel(
|
||||
id,
|
||||
connection,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue