UWNetworksLab / freedom

Embracing a distributed web
13 stars 5 forks source link

Configable WebRtcTransport class + transport implementation #50

Open iislucas opened 10 years ago

iislucas commented 10 years ago

WebRTCTransportProvider currently hard-wires STUN servers. People wanting to use WebRtc for transport (e.g. uProxy) would like to configure both STUN servers and employ TURN servers too (https://github.com/UWNetworksLab/freedom/issues/49). These things are specific to WebRTC, so maybe don't want to be in Transport API. But we do want the option to use/specify them...

One way to do this is to make a WebRtc class that uses peer-connection and does all the work, and is configurable. Then the WebRTCTransportProvider is a lightweight wrapper around this class with some reasonable set defaults.

Paul-E commented 10 years ago

Current list of hard coded servers: https://github.com/UWNetworksLab/freedom/blob/v0.3.1/providers/transport/webrtc/transport.webrtc.js#L25