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(
|
2024-12-29 13:14:46 +00:00
|
|
|
this.coreflowRef.typedrouter,
|
2024-05-08 22:05:16 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
public async stop() {
|
|
|
|
await this.typedsocketServer.stop();
|
|
|
|
}
|
|
|
|
}
|