My main concern is to avoid using Java for the client side as the web interface is specifically designed for mobile devices.
The primary objective is to determine the most efficient method to transmit a string from an "Onmousedown", "Onmouseup", or "Onclick" JavaScript event to a Java socket server, which will then distribute the string to connected clients and display it in the console.
While I have successfully resolved the second part of the problem, I am encountering difficulties in tackling the initial step.
Although Socket.io might offer a solution, it appears that Socket.io operates as its own server and may not be compatible with Java programs.
Any assistance or suggestions would be greatly appreciated.