Message gets lost if sent immediately after the open event #1233
Unanswered
lorenzo-arena
asked this question in
Q&A
Replies: 2 comments
-
No, is not expected to lose the message on an open data channel. If thats all you wanted to know, im sure chatgpt would have told you the same thing. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@lorenzo-arena have you tried without using async? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have an application which consists of two parts, one of which is typically "the offerer", which also decides which datachannels to open, and the other waits for channels to be opened for communication. When a channel is opened on "the answerer" it has to do some operations (which are fast, but not immediate) before attaching a callback to the
message
event.If I try to send a message right after receiving the
open
event in the offerer, like in the following snippedthe message seems to get lost. Is this expected behavior?
Beta Was this translation helpful? Give feedback.
All reactions