Menu

Before Switching to P2P, I Measured Whether WebRTC Would Even Connect
📰

Before Switching to P2P, I Measured Whether WebRTC Would Even Connect

DEV Community: javascript·CokeBear·10 days ago
#PDmBNweE
#devtojavascript#devto#dev#transfer#probe
Long article (1190 words) — no AI summary yet.
Reading 0:00
15s threshold

I'm building Clipboard Share, a browser clipboard for moving files between devices on the same network: https://www.clipboardapp.org . I wanted to make transfers faster by using WebRTC. Before changing anything, I shipped a small probe that only measures whether a direct connection works.

One thing up front: file transfer is still not P2P. Files go to Cloudflare R2 and the receiver downloads from R2. The only place in the codebase that creates a DataChannel is the probe, and it sends throwaway test data.

Why I looked at P2P

The current flow is "upload everything, then download." With a multi-GB file, the receiver waits for the whole upload even if the sender is sitting next to them.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.