raimohanska / ourboard

An online whiteboard
Other
763 stars 58 forks source link

Event based sync #113

Closed raimohanska closed 3 years ago

raimohanska commented 3 years ago

Instead of always sending full board state in board.init we should only send events that are not yet synced to the client for way faster connect, less traffic and load on the server.

This requires some mechanism for keeping track of which local events are synced with the server at the moment.

raimohanska commented 3 years ago

First shot at 53a6375

raimohanska commented 3 years ago

Using a server-assigned serial number on events.