diart
diart copied to clipboard
Support multiple client connections over Websocket
Looked at the WebSocketAudioSource class to realise that the server will only support one client at a time. Also leads to this weird (but expected, i guess) behaviour - when two clients connect sequentially, the later one has response offsets that carry over from the first one.
I can see a way to add multi-client support - happy to make a PR - but wondering if this choice is intentional? And if i am missing something?
New here, and really appreciate the detail and thought that has gone into this work already!
Hi @janaab11, thank you for opening this PR! Indeed the single-client is a limitation and would be glad to make it multi-client. I'll review your PR.
Could you please open the PR against the develop branch of diart instead of your fork? Then I'll be able to review it. Thanks!
Hi @juanmc2005, i have opened the PR. Sorry for the delay, look forward to working on this!