Replies: 1 comment
-
After adding async to |
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
-
Greetings, everyone. When transferring data to datachannel and then trying to decode it with json.loads, datachannel no longer accepts the data. In fact, it does not close on the browser side using the javascript api webrtc and keeps sending data, but on the aiortc side the data is no longer displayed.
The structure is such that in the endpoint denoting the call, I create an RTCPeerConnection, and also immediately subscribe to the datacannel open event and its "message" event.
In this way:
Next comes sending this message to all other clients, but this code is serviceable because when you comment out the json decode string, everything works as normal. The first time the message is displayed in the console (specifically, its length). Then, no message sent by the client is displayed. What could be the problem?
Beta Was this translation helpful? Give feedback.
All reactions