Example of mouse remote contol via Websocket connection, supported commands:
- move mouse
- get mouse position
- draw circle
- draw square
- draw rectangle
- take screenshot
This is a backend only, take frontend from here.
Tested on Windows 10, Google Chrome 109 (64bit) in VS Code Version: 1.74.3
Task is here.
Clone/download repo here with frontend and install packages
npm i
Run the frontend in production mode
npm start
Clone/download repo here with backend and install packages
npm i
Run the application in production mode
npm start
By default app use port 8080. You can change port in .env file (before rename it from env.example).
Use frontend for testing from here
Clone/download it and open http://localhost:8181/ to get user interface.
By default app use port 8080. You can change port in .env file.
Proper functioning is not guaranteed if a part of the figure being drawn is outside the Canvas drawing area or the screen. Works correctly only on the "main" screen.