← Electerm Blog

Desktop sessions now use IPC instead of WebSocket

2026-12-03
desktopreleaseipctroubleshooting

You close your laptop lid, open it again a few minutes later, and the terminal says the session is disconnected — even though the server on the other end never went away.

The cause was inside the app, not on the network. In the desktop version, the interface talked to the local backend through a WebSocket on localhost. When the laptop goes to sleep, the operating system suspends the network stack, and that loopback socket drops with it. The interface loses its link to sessions that are otherwise still running.

What changed in 6.0.6

Internal communication now uses Electron's built-in IPC. Messages pass directly between the interface and the main process without touching the network stack, so the link survives sleep and lid-close. The desktop backend also no longer needs to open a local TCP port for sessions.

The new transport covers terminals, SFTP, file transfers, serial ports, and RDP/VNC/SPICE sessions. There is nothing to configure — the desktop app uses IPC automatically after you upgrade to 6.0.6.

One honest caveat: IPC protects the internal link only. If the network itself goes away during sleep, for example when Wi-Fi disconnects, a remote SSH connection can still time out. Keepalive and reconnect behavior for remote connections is unchanged.

The browser-based electerm-web still uses WebSocket, since a web page cannot use Electron IPC.

Download the new version from electerm.org or use the in-app update.