Old data to be extract from XFDF file and to store in firebase | Real Time Collaboration

Hi there,

I still am not sure what you are asking. How you implement real time collaboration is up to you and is out of scope of this support channel.

At a very high level, realtime collaboration generally works like this:

  • When a user creates/edits/deletes an annotation in the viewer, the XFDF for that annotation is sent to your server where it is stored in the database. At the same time, that XFDF is sent to any other connected users via WebSocket. There are many many libraries to help you handle this. For an easy implementation, we recommend using Firestore as it handles both data storage and websocket connections.
  • When a user loads a document, you import the all the XFDF’s for that document from your database and import them into the viewer.

Logan