diff --git a/src/lib/constants.js b/src/lib/constants.js index 41ba705..df1e712 100644 --- a/src/lib/constants.js +++ b/src/lib/constants.js @@ -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' diff --git a/src/lib/state.js b/src/lib/state.js index 06217c9..f4689c9 100644 --- a/src/lib/state.js +++ b/src/lib/state.js @@ -93,6 +93,9 @@ export const killQuery = async ({ }) => { runTestQuery = false return } + ws.send(JSON.stringify({ + mode: queryMode.KILL, + })) } // noinspection JSUnusedGlobalSymbols