I just want to share light weight data between mesh of rtc peers. But not able to figure out programmatically how I can create a mesh.network and create multiple dataChannels.
You need to create a new peerconnection on each user for each new user that you get. Then you will have to create data channels for each peer connection.
EX. peers AB C
ps. EACH of these CONNECTIONS have a data channel.
Alternative: A->B->C->A you connect them in a chain, which is computationally better, but it is harder to manage messages and destinations
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.