Skip to content

Commit

Permalink
Add public ice servers
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron7 committed Jun 1, 2024
1 parent 19fd180 commit c193403
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/utils/collab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,29 @@ export const createWebrtcProvider = (session: Session, isHost: boolean) => {
const webrtcProvider = new WebrtcProvider(roomId, ydoc, {
password: session.secret,
signaling: [signalingServerUrl || 'ws://localhost:4444'],
peerOpts: {

Check failure on line 48 in src/utils/collab.ts

View workflow job for this annotation

GitHub Actions / test (20.x)

Expected object keys to be in ascending order. 'peerOpts' should be before 'signaling'
config: {
iceServers: [
{ urls: 'stun:stun.l.google.com:19302' },
{ urls: 'stun:global.stun.twilio.com:3478' },
{
urls: 'turn:openrelay.metered.ca:80',
username: 'openrelayproject',
credential: 'openrelayproject',

Check failure on line 56 in src/utils/collab.ts

View workflow job for this annotation

GitHub Actions / test (20.x)

Expected object keys to be in ascending order. 'credential' should be before 'username'
},
{
urls: 'turn:openrelay.metered.ca:443',
username: 'openrelayproject',
credential: 'openrelayproject',

Check failure on line 61 in src/utils/collab.ts

View workflow job for this annotation

GitHub Actions / test (20.x)

Expected object keys to be in ascending order. 'credential' should be before 'username'
},
{
urls: 'turn:openrelay.metered.ca:443?transport=tcp',
username: 'openrelayproject',
credential: 'openrelayproject',

Check failure on line 66 in src/utils/collab.ts

View workflow job for this annotation

GitHub Actions / test (20.x)

Expected object keys to be in ascending order. 'credential' should be before 'username'
},
],
},
},
});

const userColor = usercolors[uint32() % usercolors.length];
Expand Down

0 comments on commit c193403

Please sign in to comment.