Message gets lost if sent immediately after the open event #1233
Replies: 3 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.
-
|
@lorenzo-arena have you tried without using async? |
Beta Was this translation helpful? Give feedback.
-
|
Sorry for the silence; we initially thought to have this solved by using a simple queue of messages received while setting up the channel; however it seems that the issue is related to the fact that if an I've opened a PR for this: #1394 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
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
messageevent.If I try to send a message right after receiving the
openevent 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