tdav
tdav

Reputation: 301

WebRTC-creating multiple connections is one RTCPeerConnection enough?

to create multiple connections on a server with clients I need to keep multiple RTCPeerConnection connections between clients or one RTCPeerConnection and Offer enough

Upvotes: 1

Views: 918

Answers (1)

Rubycon
Rubycon

Reputation: 18346

You need to have a single connection between 2 parties.

So if you have a single server and many users around it then you need to create a separate peer connection for each server <-> user pair, so you need to have many RTCPeerConnection objects at server side.

This is how actually SFU (Selective Forwarding Unit) architecture for WebRTC works

Upvotes: 1

Related Questions