Skip to content

Add configurable relay server URL in extension#51

Open
Marandi269 wants to merge 1 commit intoSawyerHood:mainfrom
Marandi269:feature/configurable-relay-url
Open

Add configurable relay server URL in extension#51
Marandi269 wants to merge 1 commit intoSawyerHood:mainfrom
Marandi269:feature/configurable-relay-url

Conversation

@Marandi269
Copy link

Summary

Allow users to configure a custom relay server URL in the extension popup, enabling remote development scenarios.

Use cases:

  • Running the relay server on a remote machine and connecting via SSH tunnel
  • Development in devcontainers where the browser runs on the host machine
  • Multi-machine setups where the relay server runs on a different host

Changes

  • Add URL input field in extension popup to configure relay server URL
  • Support both ws:// and wss:// URL schemes
  • Auto-reconnect when URL is changed
  • Persist URL configuration in Chrome storage
  • Add security warning when relay server binds to non-localhost address
  • Default relay server binding changed to 0.0.0.0 in start script (configurable via HOST env var)

Related

Addresses use case described in #23

Test plan

  • Configure custom relay URL in extension popup
  • Verify extension reconnects to new URL
  • Verify URL validation (ws/wss schemes required)
  • Verify URL persists across extension restarts
  • Test with remote relay server via SSH tunnel

Allow users to configure a custom relay server URL in the extension popup,
enabling remote development scenarios where the relay server runs on a
different machine (e.g., via SSH tunnel).

Changes:
- Add shared constants file with DEFAULT_RELAY_URL and wsUrlToHttpUrl helper
- Add relay URL storage in StateManager
- Accept relay URL as parameter in ConnectionManager
- Support both ws:// and wss:// URL schemes
- Add URL input field in popup UI
- Handle URL changes and reconnection in background script
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.

1 participant