News for hackers. Stuff that matters.
Re:Mediasoup – WebRTC video conferencing by andrethegiant on Monday May 18, 2020 @10:01PM (#23230588)
You can use WebRTC for emitting raw data p2p, not just audio/video streams, right? Or would websockets be preferred if you wanted to, say, broadcast JSON objects to whoever was listening?
Re:Mediasoup – WebRTC video conferencing by ibc on Monday May 18, 2020 @10:09PM (#23230642)
Yes, you can use WebRTC DataChannels for sending custom text/binary data on top of a ICE+DTLS connection. BTW mediasoup supports DataChannels.

Any question or comment about mediasoup?

Re:Mediasoup – WebRTC video conferencing by andrethegiant on Tuesday May 19, 2020 @12:16AM (#23231227)
What advantages does sending data over WebRTC have over sending data over websockets?
Re:Mediasoup – WebRTC video conferencing by ibc on Tuesday May 19, 2020 @05:20AM (#23232909)
DataChannels are transmitted over the same UDP/ICE "connection" that is used to transmit audio and video packets. So if you plan to send real-time data (for example: real-time subtitles, metadata related to the current video position, etc) by sending such a data over DataChannel it will reach the remote without delay over the audio/video. If you use WebSocket to transmit the data, there may desynchronization between audio/video and data because they use a different network path.
Re:Mediasoup – WebRTC video conferencing by kabes on Tuesday May 19, 2020 @02:17AM (#23231787)
You said it yourself: it can be done peer 2 peer. A websocket will have a server in between.