React
UseuseDocumentConnection from @meshagent/meshagent-react:
Flutter
UseDocumentConnectionScope from meshagent_flutter:
What these helpers do
- open the document from an existing
RoomClient - keep the connection alive while your component or widget is mounted
- surface loading or error state back into the UI
- close the document connection when the UI goes away
When to use this
Use a document connection when your app needs a live, room-backed document surface such as:- shared notes
- thread documents
- structured room content