Bridges TCP connections through a WebSocket server, commonly used to tunnel SSH over WebSocket. The package provides three command-line tools: server.js (exposes a local TCP port via WebSocket), client.js (connects a local TCP client to a remote WebSocket endpoint), and pipe.js (maps stdio to a WebSocket for use as an SSH ProxyCommand). It enables SSH through firewalls that only allow HTTP/HTTPS traffic. Current stable version is 1.0.3, released in 2016 with no active development. Key differentiators: lightweight, no dependencies besides Node.js built-ins and ws WebSocket library, simple deployment via screen/cron, and support for Apache reverse proxy.
npm install websocket-ssh-bridgeNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Installs globally, starts a WebSocket server bridging port 8022 to SSH, then connects a client from another machine.
Consider alternative packages like 'websocat' or 'wstunnel' that are actively maintained.
Use Node.js 18 or lower, or run with `--experimental-require-module` flag.
Do not use in production; or manually update 'ws' to >=3.3.0 but may break the bridge logic.
Replace with `Buffer.from()` in source code, but since package is abandoned, better to switch to an alternative.
Run `npm install ws` explicitly or reinstall the package with `npm install websocket-tcp-bridge`.
Use Node.js >=14.
Make sure to run with Node.js, not in a browser environment.