Discussions
What event assures me the session is ready?
8 months ago by Jose Galindo
I want to be able to invoke the streaming.task
endpoint after the session is ready. I was checking for the peerConnection.iceConnectionState == "connected"
in the peerConnection.oniceconnectionstatechange
event, but I get the following error:
{"code":10002,"message":"session state wrong: connecting"}
What event is the correct one to look for to be sure the session is connected and ready to send tasks?
Thank you