From 78cd3a38d8eee7a72b7d72b02c2d69e46e05b90a Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Sat, 8 Jun 2024 22:40:37 +0530 Subject: [PATCH] feat: init user input handling --- server/src/browser-management/inputHandlers.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 server/src/browser-management/inputHandlers.ts diff --git a/server/src/browser-management/inputHandlers.ts b/server/src/browser-management/inputHandlers.ts new file mode 100644 index 00000000..f1faa628 --- /dev/null +++ b/server/src/browser-management/inputHandlers.ts @@ -0,0 +1,15 @@ +/** + * A set of functions handling reproduction of user input + * on the remote browser instance as well as the generation of workflow pairs. + * These functions are called by the client through socket communication. + */ +import { Socket } from 'socket.io'; + +import logger from "../logger"; +import { Coordinates, ScrollDeltas, KeyboardInput } from '../types'; +import { browserPool } from "../server"; +import { WorkflowGenerator } from "../workflow-management/classes/Generator"; +import { Page } from "playwright"; +import { throttle } from "../../../src/helpers/inputHelpers"; +import { CustomActions } from "../../../src/shared/types"; +