Move the query event handlers into a subfolder and name them in a consistent way
This commit is contained in:
parent
6a2cc1170d
commit
c113c326c6
6 changed files with 38 additions and 32 deletions
|
|
@ -1,15 +1,15 @@
|
|||
import { cancelRequest } from "./cancelRequest.mjs";
|
||||
import { createNotif } from "./createNotif.mjs";
|
||||
import { dataRequest } from "./dataRequest.mjs";
|
||||
import { Logger } from "../utils/Logger.mjs";
|
||||
import { submitRequest } from "./submitRequest.mjs";
|
||||
import { queryCancel } from "./query/cancel.mjs";
|
||||
import { queryNotify } from "./query/notify.mjs";
|
||||
import { queryPrompt } from "./query/prompt.mjs";
|
||||
import { querySubmit } from "./query/submit.mjs";
|
||||
|
||||
const events = {
|
||||
// Data Request sockets
|
||||
"query.cancel": cancelRequest,
|
||||
"query.notify": createNotif,
|
||||
"query.prompt": dataRequest,
|
||||
"query.submit": submitRequest,
|
||||
"query.cancel": queryCancel,
|
||||
"query.notify": queryNotify,
|
||||
"query.prompt": queryPrompt,
|
||||
"query.submit": querySubmit,
|
||||
};
|
||||
|
||||
export function registerSockets() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue