I am trying to code a WebSocket server in python that is capable of handling several clients simultaneously.
My objective is to run a python script that will receive Serial Port Data from an Arduino (via USB to serial port), and will serve a WebSocket to send/receive data from multiple clients (web browser, android app...).
I have found very complicated examples and libraries but nothing to start working with multi-client. The closest is this, but can only work with 1 client: https://gist.github.com/jkp/3136208
Any suggestion on how to implement my project? I have read of socket.io, and others, but I really would like to do all in python, unless proven to be a very bad decision.