'Python Websockets send Keypress

i established a websocket server on a electron app so now i can use the python websockets linary to interact with the app.

I got a hint from a friend of mine that websockets are capable to send keypresses/keystrokes, but i couldnt find anything like that on so or docs or the ws github repo.

So, my question is if one can emulate keystrokes with websockets.

Thanks in advance!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source