diff options
| author | Sam Wilkins <samwilkins333@gmail.com> | 2020-01-11 11:23:11 -0500 |
|---|---|---|
| committer | Sam Wilkins <samwilkins333@gmail.com> | 2020-01-11 11:23:11 -0500 |
| commit | 120fa84b3e8c794dd882d3613067c5b18ee7ba04 (patch) | |
| tree | 36964a80e2043d9948a993a903b6efec257ae2f2 /src/server/DashSession/DashSessionAgent.ts | |
| parent | 126f05056b64fa98e9b13210eedae711bfc3f38f (diff) | |
typed messages and handlers
Diffstat (limited to 'src/server/DashSession/DashSessionAgent.ts')
| -rw-r--r-- | src/server/DashSession/DashSessionAgent.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/DashSession/DashSessionAgent.ts b/src/server/DashSession/DashSessionAgent.ts index b7e741525..23d421835 100644 --- a/src/server/DashSession/DashSessionAgent.ts +++ b/src/server/DashSession/DashSessionAgent.ts @@ -33,9 +33,9 @@ export class DashSessionAgent extends AppliedSessionAgent { monitor.addReplCommand("solr", [/start|stop|index/], this.executeSolrCommand); monitor.addReplCommand("backup", [], this.backup); monitor.addReplCommand("debug", [/active|passive/, /\S+\@\S+/], async ([mode, recipient]) => this.dispatchZippedDebugBackup(mode, recipient)); - monitor.addMessageListener("backup", this.backup); - monitor.addMessageListener("debug", ({ args: { mode, recipient } }) => this.dispatchZippedDebugBackup(mode, recipient)); - monitor.onCrashDetected(this.dispatchCrashReport); + monitor.on("backup", this.backup); + monitor.on("debug", ({ args: { mode, recipient } }) => this.dispatchZippedDebugBackup(mode, recipient)); + monitor.hooks.crashDetected(this.dispatchCrashReport); } /** |
