extensions
extensions copied to clipboard
Add PeerJS Extension
https://github.com/cloudlink-omega/peerjs-scratch
This was intended to be an experimental foundation for a CL5 rewrite but I thought it would be perfectly fine making it it's own thing.
I'm not 100% sure if my tweaks to the original code would make it fully compliant with the "Banned APIs" section.
PeerJS?! Your Adding It? Yayyyyyyyyyy
Where is the create peer block
Noted requested changes, will be working on them.
I'll do a review
!format
huh, neat
huh, neat
Yeah, lol, it's a workflow I made (polished by GarboMuffin)
since we're here, can someone please fix the website's credit link to point to my new account? thanks
Ok, I haven't run this yet or looked at the code. I'm clicking this button so people don't get eager and merge it too early.
I'm sad about that, but it's understandable.
If this is true p2p then we need something like Scratch.canP2P() that attempts to explain the risks of sharing IP with random people
This is a valid concern. I have no intentions of merging without letting people know what they're working with.
(Since the WebRTC stack that it runs on top of supports forced TURN-only mode, I might enable that. TURN should prevent IP leaking at the cost of increased latency.)
Don't know yet what the approach should be for the big copied and pasted compressed library but will have to be figured out first
Yeah. Before I made the PR I had the library loaded dynamically and injected into the DOM...
let's see if this will work for me
~~!format~~
~~guess not.~~
spoke too soon?
I don't think I'm using Scratch.canRecordAudio() correctly - Is it awaitable or is it blocking?
I don't think I'm using
Scratch.canRecordAudio()correctly - Is it awaitable or is it blocking?
it's async (so awaitable)
!format
:sob:
Why does the block "enableVerboseLogs" exist even though the toggle logs block exists?
Why does the block "enableVerboseLogs" exist even though the toggle logs block exists?
He released this extension earlier to his own people, so technically, just like your extensions, they are already being used by real people, and he rather not break compatibility.
Why does the block "enableVerboseLogs" exist even though the toggle logs block exists?
He released this extension earlier to his own people, so technically, just like your extensions, they are already being used by real people, and he rather not break compatibility.
Ah okay.
Seems all good then
I realized way too late that I forgot to add a function to close channels. Oopsies.
This should be a draft anyways since TW needs some sort of warning mechanism about P2P.
So can someone help me understand what exactly is keeping this from being merged?
So can someone help me understand what exactly is keeping this from being merged?
I haven't paid much attention to this issue, but there are a few key elements that needs addressing before it's safe to merge.
- Lack of ability to close a channel.
- Known bug with certain hats - This could be remedied by backporting CL5 code.
- TW still doesn't have a mechanism for alerting users about P2P connections.
https://github.com/cloudlink-omega/peerjs-scratch/issues/4
Going to bump this. The repository changed ownership back to my personal account, and there have been a few bugfixes here and there. Still waiting on some sort of menu alert to warn about P2P connectivity.
Edit: I am stupid and realized that bumps don't exist for PRs