- #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 newsrc
id andseq
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 asagent.src
. The legacy server-generated id is still available asagent.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
.
- In sharedb <= 1.1.0, a client gets a new server-generated