Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Best Practices to reset WebRTC peer connections? #111

Open
mannerism opened this issue Jun 17, 2022 · 1 comment
Open

Best Practices to reset WebRTC peer connections? #111

mannerism opened this issue Jun 17, 2022 · 1 comment

Comments

@mannerism
Copy link

Hello,

I really appreciate your work and it has helped me a lot studying WebRTC tech in iOS.

One question I have is what would be the best practices to safely reset on-going peer connections between clients. For example, in the sample app, when I try to offer/answer for the first time, it works very well. But when I try to disconnect and reconnect in the same screen, it seems the offer/answer is not working properly. How would you go about the problem?

Thanks.

@stasel
Copy link
Owner

stasel commented Jun 22, 2022

Hi, happy that you find the project useful and informative.

From my experience, in order to reset peer connection, you will have to create a new instance of the class on both clients and start over (and discarding the previous instances)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants