You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cross-port localhost WebSocket fails in in-app browser #1452
A local web app served from one localhost port cannot establish a WebSocket connection to a different localhost port in bb's in-app browser.
The page's HTML/JS loads correctly, but data that depends on the WebSocket remains pending and the UI stays on "Loading…" indefinitely.
The same URL works normally in Chrome and Safari.
Repro
Run a local app with its frontend and WebSocket backend on different localhost ports. For example:
Vite dev server: 127.0.0.1:3009
Convex local backend: 127.0.0.1:3210
Open http://127.0.0.1:3009 in bb's in-app browser.
The page shell renders, but live queries remain pending.
Open the same URL in Chrome or Safari.
The app loads normally.
This example uses Convex, but the issue appears to be with cross-port localhost WebSocket connections rather than Convex specifically.
Vite's HMR WebSocket works because it uses the same port as the page.
Expected
Pages opened in the in-app browser should be able to establish WebSocket connections to other localhost ports, as they can in Chrome and Safari.
Activity
Delete the in-app browser loopback firewall
Delete the in-app browser loopback firewall
Delete the in-app browser loopback firewall (#1537)