3 ms·
I've built something similar and your architecture sounds just fine. With websocket you are able to send the state to the server and just share it across client
by jokethrowaway 6y ago
I've built something similar and your architecture sounds just fine. With websocket you are able to send the state to the server and just share it across clients.
Maybe you have clients disconnecting and reconnecting with a new id? You need to have a mechanism for identifying browsers (eg. storing something in localStorage)
Given you mention video chat, I wonder if you're relying on webrtc + websocket for signalling. In that case communication between clients would be p2p and a reconnection handled incorrectly could cause state to be lost.
But I'm just guessing.
HN is probably not the right place to get support for this though.