Nilesh Trivedi
12/15/2023, 1:03 PMLeonard Pauli
12/15/2023, 1:05 PMCole
12/15/2023, 1:15 PMNilesh Trivedi
12/15/2023, 1:19 PMLeonard Pauli
12/15/2023, 1:21 PMCole
12/15/2023, 1:35 PMWebsockets create that magical collaboration feeling by enabling a real-time stream of messages to be sent and received by a client, e.g.. These messages are relayed by the server to collaborators whose space state is updated. e.g. updating the position of the card.Pirijan moved cardId ABC123 to position {x: 100, y: 200}
The problem with saving data with websockets is that they’re too fast. Authenticating that many messages per second and writing them to disk would be really inefficient. E.g. If you’re moving a card from positiontox: 20
, Kinopio will use websockets to broadcast many updates during the move:x: 420
,moving card x to 21
, `moving card x to 28`… potentially hundreds of messages. Or you could send a single API request after you’ve moved the card,moving card x to 24
.PATCH card.x = 420
Nilesh Trivedi
12/15/2023, 1:54 PMChris Krycho
12/15/2023, 4:32 PMChris Krycho
12/15/2023, 4:32 PMChris Krycho
12/15/2023, 4:34 PM