Implement Single-QR WebRTC Flow for Offline Connectivity#9
Implement Single-QR WebRTC Flow for Offline Connectivity#9
Conversation
Co-authored-by: Yukaii <4230968+Yukaii@users.noreply.github.com>
|
@copilot To add a little more context. Check out #7 for my WIP on WebRTC. The PWA client should also support reading SDP and additional credentials for connection from the printed QR code on the server. I was using a technique of cycling through a set of different QR codes that encoded JSON chunks, and scanning to recover the final data on the client. So our current command-line server also needs a TUI to achieve this. I was also patching node-libdatachannel for better logging. |
|
@copilot try again, since the changes in comment #9 (comment) not delivered |
|
@copilot try again, since the changes in comment #9 (comment) not delivered |
Co-authored-by: Yukaii <4230968+Yukaii@users.noreply.github.com>
Implemented the TUI for cycling through QR codes with these features:
Changes in 8a7c119. Warning Firewall rules blocked me from connecting to one or more addressesI tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Co-authored-by: Yukaii <4230968+Yukaii@users.noreply.github.com>
Replaced blessed with ink in deecef3. Created a React-based implementation that maintains the same public API for QRCycleTUI class with these features:
Warning Firewall rules blocked me from connecting to one or more addressesI tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Co-authored-by: Yukaii <4230968+Yukaii@users.noreply.github.com>
Co-authored-by: Yukaii <4230968+Yukaii@users.noreply.github.com>
Co-authored-by: Yukaii <4230968+Yukaii@users.noreply.github.com>
Co-authored-by: Yukaii <4230968+Yukaii@users.noreply.github.com>
This PR implements a "Single-QR / no-return-trip" WebRTC flow for improved offline connectivity, following the Pion-style offline trick approach. This allows the application to work in local LAN environments without requiring Internet connectivity or return-trip signaling.
Key Features
Implementation Details
Command Line Options
The WebRTC mode offers better security and reliability in offline environments where WebSockets may not be viable.
Fixes #8.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.