Bug resolved. A tap/emulation would throw an error if there was no websocket connection initiated at all by any client since the server started.
Updated requirements.txt