You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#341 - Add basic handshake negotiation and stable op src for clients across reconnects (@alecgibson)
In sharedb <= 1.1.0, a client gets a new server-generated connection.id each time it reconnects to another server. This means each reconnection results in the client's ops having a new src id and seq numbers that begin anew from 1.
1.2.0+ clients connecting to 1.2.0+ servers will now keep their first connection.id across reconnections. On server agents, this is available as agent.src. The legacy server-generated id is still available as agent.clientId.
This change is compatible both ways. Old clients can still connect to new servers. New clients can still connect to old servers, though if a a new client connects to an older server, it will change to the server-generated connection.id.