libkernel/src/module/clients/network.ts

21 lines
520 B
TypeScript
Raw Normal View History

import { Client } from "../client.js";
import { getNetworkModuleStatus } from "#api.js";
export default abstract class NetworkClient extends Client {
public async register() {
return this.callModuleReturn("register");
}
2023-07-29 03:48:07 +00:00
public status(callback?: any): Promise<void> | (() => void) {
return getNetworkModuleStatus(callback, undefined, this.connectModule);
}
2023-07-29 03:48:24 +00:00
public async name() {
return this.callModuleReturn("name");
}
public async ready() {
return this.callModuleReturn("ready");
}
}