fix(web): use wss:// when page is served over HTTPS (#391)

When T3 Code web mode is accessed via HTTPS (e.g. through a reverse proxy
or Tailscale Serve), the WebSocket connection must use wss:// instead of
ws://. Browsers block mixed content — an insecure ws:// connection
initiated from an HTTPS page.

Fix: derive the WebSocket protocol from window.location.protocol.

Co-authored-by: PatrickBauer <patrick@patrickbauer.dev>
6271b989bcPatrick Bauer committed on 3/8/2026, 11:30:25 PM· committed by GitHubparent57aa6bf
2 files changedLine totals unavailable