Currently, we are using WebSocket close codes to handles ydoc resets (out of band changes, etc.). This requires custom logic in the frontend for each document type. We have done this for notebooks and text files, but still need to add this logic for chat files.