Description
After direct connection to a document is disconnected, the document is not unloaded and stays in memory.
Steps to reproduce the bug
Steps to reproduce the behavior:
Open direct connection to a document
Close direct connection
Check Hocuspocus state
The document is no unloaded
UPD: I tried to force unload document when direct connection is closed, but it leads to a problem when the document is uploaded without persisting the latest change.
Expected behavior
It is expected that direct connections behave the same way as remote connection, after disconnect the document should be unloaded if there are no other connections.
Description After direct connection to a document is disconnected, the document is not unloaded and stays in memory.
Steps to reproduce the bug Steps to reproduce the behavior:
UPD: I tried to force unload document when direct connection is closed, but it leads to a problem when the document is uploaded without persisting the latest change.
Expected behavior It is expected that direct connections behave the same way as remote connection, after disconnect the document should be unloaded if there are no other connections.
Environment?