Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
diff --git a/examples/data-channels/main.go b/examples/data-channels/main.go
index 4df8065..fd438d7 100644
--- a/examples/data-channels/main.go
+++ b/examples/data-channels/main.go
@@ -15,9 +15,12 @@ func main() {
config := webrtc.Configuration{
ICEServers: []webrtc.ICEServer{
{
- URLs: []string{"stun:stun.l.google.com:19302"},
+ URLs: []string{"turn:localhost"},
+ Username: "a",
+ Credential: "b",
},
},
+ ICETransportPolicy: webrtc.ICETransportPolicyRelay,
}
// Create a new RTCPeerConnection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.