-
-
Notifications
You must be signed in to change notification settings - Fork 71
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
IonConnector
: wait for SFU joined
#206
Comments
Hello @adwpc, what do you think about it? I can help with a PR if it makes sense to you and everyone. Currently I'm patching the library to use in my project. |
I think it makes sense. Without fully joining the SFU, calls to .publish(stream) are going to throw. |
avxit
added a commit
to avxit/ion-sdk-js
that referenced
this issue
Jul 21, 2021
@avxit Sorry for late. looks good! thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Why we don't wait for
sfu.join
finish then callthis.onjoin
? I'm checking ifsfu
is defined afteronjoin
, but sincesfu.join
is async there is no way to know ifsfu.join
success or not.https://github.com/pion/ion-sdk-js/blob/1e7603187c89afd15a83c6b8287b03149de42b06/src/ion.ts#L92-L106
The text was updated successfully, but these errors were encountered: