yjs / y-webrtc

WebRTC Connector for Yjs
MIT License
448 stars 109 forks source link

Allow for or extend checking connectedness of the provider #49

Open lukashaertel opened 1 year ago

lukashaertel commented 1 year ago

Is your feature request related to a problem? Please describe. I want to properly check the connectedness status of the provider, I am unsure if the connected flag of the WebrtcProvider is properly representative of this status, as it is true if the room is created, but not if any networking has been done.

Describe the solution you'd like One of the following come to mind:

Describe alternatives you've considered Checking the connected flag, but as stated earlier, I am not sure if this is fully representative of what I would expect.

Additional context I am not certain if a connection status can generally be determined in this configuration and if I am asking for a feature that cannot be implemented.

lukashaertel commented 1 year ago

I think the core issue is the I am having problems when I want to dynamically create and destroy providers but run into issues that a room is already in use because I cannot properly determine when all the room and connection management is completed.