What is server_id in DDP?

After connecting to the server, one of the messages I get back is {"server_id":"0"}. What is this? (I don’t see it in the DDP spec)

The code states this:

// XXX COMPAT WITH 0.6.6. Send the old style welcome message, which
// will force old clients to reload. Remove this once we're not
// concerned about people upgrading from a pre-0.7.0 release. Also,
// remove the clause in the client that ignores the welcome message
// (livedata_connection.js)
socket.send(JSON.stringify({server_id: "0"}));

So, I guess it will disappear in time.

1 Like

Thanks! Now I feel kinda silly for not going to the itself…