You could optimize it by just sending over the delta in the TMap (if only parts change).
You would then only have to update incrementally and the data send over the network could be smaller.
So if the sent data key exists in the map then update the value, if it doesn’t, add the value. You could send a bit to describe if it’s a delete or add / update function. If the bit corresponds to delete then remove the entry with the passed over key from the TMap