You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, get_room will create an instance of a YRoom if the room doesn't exist. This is problematic for libraries that subclass YRoom, e.g. jupyter-collaboration uses it's own DocumentRoom subclass. The room is created and added to the Websocket Server using the add_room API. This can lead to an unintentional creation of a mix of YRoom and DocumentRoom instances.
The text was updated successfully, but these errors were encountered:
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋
Thanks @Zsailer.
The get_room() method in pycrdt-websocket is used to serve a WebSocket client. If the room doesn't exist yet, one must be created. A subclass of WebsocketServer must ensure its custom room is created before serving the WebSocket. But in the general case where WebsocketServer is not subclassed, we need to have a default way of creating a room.
But I understand your point, and maybe we should have a create_room() in pycrdt-websocket, that would create a generic room by default, that WebsocketServer subclasses could override with their custom implementation?
Right now,
get_room
will create an instance of a YRoom if the room doesn't exist. This is problematic for libraries that subclass YRoom, e.g. jupyter-collaboration uses it's ownDocumentRoom
subclass. The room is created and added to the Websocket Server using theadd_room
API. This can lead to an unintentional creation of a mix of YRoom and DocumentRoom instances.The text was updated successfully, but these errors were encountered: