Skip to content

Conversation

pixer415
Copy link

This is an update that lets you connect to PeerServers other than 0.peerjs.com, and use other STUN/TURN servers.

I realized I could just use a URL object to get the settings.

This is an update that lets you connect to PeerServers other than 0.peerjs.com, and use other STUN/TURN servers.
Copy link

@Thebloxers998 Thebloxers998 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's me from discord!
I just viewed the code and adding this is a great idea
If only MikeDEV had enough time to merge this

Copy link
Owner

@MikeDev101 MikeDev101 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't merge, but these changes will be added.

blockType: Scratch.BlockType.BOOLEAN,
text: Scratch.translate("connected to PeerJS server?"),
},
{
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will prob be one of two things I'll actually take from this PR.

this.turnPass = Scratch.Cast.toString(PASS);
}

createPeer({ ID, SERVER, KEY }) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants