aboutsummaryrefslogtreecommitdiff
path: root/src/server/DashSession.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/DashSession.ts')
-rw-r--r--src/server/DashSession.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/DashSession.ts b/src/server/DashSession.ts
index 7c2cfaf8d..22bcbadc9 100644
--- a/src/server/DashSession.ts
+++ b/src/server/DashSession.ts
@@ -19,7 +19,7 @@ export class DashSessionAgent extends Session.AppliedSessionAgent {
private readonly signature = "-Dash Server Session Manager";
protected async launchMonitor() {
- const monitor = new Session.Monitor({
+ const monitor = Session.Monitor.Create({
key: async key => {
// this sends a pseudorandomly generated guid to the configuration's recipients, allowing them alone
// to kill the server via the /kill/:key route
@@ -54,7 +54,7 @@ export class DashSessionAgent extends Session.AppliedSessionAgent {
}
protected async launchServerWorker() {
- const worker = new Session.ServerWorker(launchServer); // server initialization delegated to worker
+ const worker = Session.ServerWorker.Create(launchServer); // server initialization delegated to worker
worker.addExitHandler(() => Utils.Emit(WebSocket._socket, MessageStore.ConnectionTerminated, "Manual"));
return worker;
}