This is one of the hardest libraries that I have built, I had a problem where I needed to create some real-time solution for a IoT device, at that time I was handling a lot of pressure because I was the main backend developer/Project owner and I didn't find a good WebSocket framework for python.

So I took the websockets library and by reading some of the code in the bottlepy Micro framework.

The job was done, and I could have multiple endpoints on one WS server, with this I create 2 endpoints one for the IoT device to send and update request, and another one for the clients, it was not real-time because the IoT devices send the data in intervals but if we at the moment the server received the data the client-side received an update.