coreflow/ts/coreflow.classes.internalserver.ts

22 lines
544 B
TypeScript
Raw Normal View History

2024-05-08 22:05:16 +00:00
import { Coreflow } from './coreflow.classes.coreflow.js';
import * as plugins from './coreflow.plugins.js';
export class InternalServer {
public coreflowRef: Coreflow;
public typedsocketServer: plugins.typedsocket.TypedSocket;
constructor(coreflowRefArg: Coreflow) {
this.coreflowRef = coreflowRefArg;
}
public async start() {
this.typedsocketServer = await plugins.typedsocket.TypedSocket.createServer(
this.coreflowRef.typedrouter
);
}
public async stop() {
await this.typedsocketServer.stop();
}
}