Closed jondubois closed 7 years ago
This is to avoid potential inconsistency is behaviour between connected vs disconnected sockets when publishing an object and modifying it shortly afterwards (while it's sitting in the buffer).
Also this should be done in sc-broker as well: https://github.com/SocketCluster/sc-broker/blob/master/index.js#L262L266
This was implemented - If you set the cloneData option to true when creating the socket.
This is to avoid potential inconsistency is behaviour between connected vs disconnected sockets when publishing an object and modifying it shortly afterwards (while it's sitting in the buffer).
Also this should be done in sc-broker as well: https://github.com/SocketCluster/sc-broker/blob/master/index.js#L262L266