109fbe097f
Electron bundles a global WebSocket in the main process; a missing constructor is a build/environment error, not a runtime state to route around. The two silent `typeof WebSocketImpl !== 'function'` returns in start()/connect() would turn that build error into an armed-looking registry that never opens a socket, letting web_server_idle_exit retire an owned SSH-isolated sibling with no log line — exactly the bug this module exists to prevent. Let `new WebSocketImpl(url)` throw into the existing catch, which logs and schedules a reconnect.