Skip to content

feat: enhance WebSocket connection handling for embedded mode#628

Open
Chakyiu wants to merge 1 commit intoTermix-SSH:mainfrom
Chakyiu:chore/update-electron-websocket-connection
Open

feat: enhance WebSocket connection handling for embedded mode#628
Chakyiu wants to merge 1 commit intoTermix-SSH:mainfrom
Chakyiu:chore/update-electron-websocket-connection

Conversation

@Chakyiu
Copy link

@Chakyiu Chakyiu commented Mar 16, 2026

Overview

  • Fixed: update to 30002 port instead of using 30001 in embedded mode.

Changes Made

in Electron mode, the terminal WebSocket was connecting to 'ws://127.0.0.1:30001/ssh/websocket/' (the Express HTTP server on port 30001), but the WebSocket server is a standalone server on port 30002 — Express doesn't handle WebSocket upgrades, so the connection was immediately dropped with code 1006.

Related Issues

None

Screenshots / Demos

SSH Connection Error

5:07:25 PM Connection closed unexpectedly. This may be due to a reverse proxy or SSL configuration issue. Please check server logs.

Checklist

  • Code follows project style guidelines
  • Supports mobile and desktop UI/app (if applicable)
  • I have read Contributing.md
  • This is not a translation request. See docs

@Chakyiu Chakyiu closed this Mar 16, 2026
@Chakyiu Chakyiu reopened this Mar 16, 2026
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