Add basic 'kill' requesting.

This commit is contained in:
Sage Vaillancourt 2022-08-23 22:27:51 -04:00
parent 6dcc90f47d
commit 8719371bd2
2 changed files with 5 additions and 1 deletions

View File

@ -2,7 +2,8 @@ import { npm_package_version } from "$env/static/private";
export const queryMode = {
REAL_TIME: 'realTime',
ONE_SHOT: 'oneShot'
ONE_SHOT: 'oneShot',
KILL: 'kill'
}
export const backendAddressAndPort = 'localhost:3000'

View File

@ -93,6 +93,9 @@ export const killQuery = async ({ }) => {
runTestQuery = false
return
}
ws.send(JSON.stringify({
mode: queryMode.KILL,
}))
}
// noinspection JSUnusedGlobalSymbols