Add WebSocket bridge for Jump with multi-device support#92
Open
shanerbaner82 wants to merge 3 commits intomainfrom
Open
Add WebSocket bridge for Jump with multi-device support#92shanerbaner82 wants to merge 3 commits intomainfrom
shanerbaner82 wants to merge 3 commits intomainfrom
Conversation
Replace the single-device connection model with a connection pool so multiple iOS/Android devices can connect to the same Jump instance simultaneously and all receive real-time reloads, keepalive pings, and bridge calls. - Add websocket-server.php (Workerman-based WS + TCP bridge server) - Add JumpBridge.php client for PHP-to-device RPC via length-prefixed TCP - Add jump_bridge_functions.php (nativephp_call helper) - Refactor JumpCommand to start WS bridge, discover ports, proxy Vite assets - Update router.php to read Vite dev server config from hot file - Register bridge service provider bindings in NativeServiceProvider Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Change QR code data from JSON to jump:// deep link URL so scanning with the native camera app opens Jump and auto-connects - Render QR code directly in the terminal using Unicode block characters, eliminating the need to open a browser Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Add /jump/open endpoint that redirects browser to jump:// deep link (fallback for Android camera which only opens http:// URLs) - Update terminal QR instructions for iOS (Camera or Jump app) and Android (Jump app only) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
websocket-server.php) so Jump can send real-time reload events and bridge calls to connected devicesJumpBridgePHP client for device RPC via length-prefixed TCP framingJumpCommandto manage WS/bridge server lifecycle, port discovery, and Vite asset proxyingrouter.phpto read Vite dev server port/host from the hot fileTest plan
php artisan native:jumpand connect a single device — verify reload on file change🤖 Generated with Claude Code