How does the server obtain the latest document content by updating the collection and store it in the file?

In collaborative mode, my update collection is pushed to the server, how can the server get the latest document content?