A TCP tunnel over WebSocket for circumventing firewalls. Version 1.2.2 is the last published release, requiring Node.js ~0.10.21, and is in maintenance mode. It establishes a bidirectional tunnel by exposing a local port that forwards traffic through a WebSocket connection to a remote destination. Unlike newer alternatives like websocat or bore, wstunnel focuses on simplicity and direct proxy support (HTTP proxy, wss://).
npm install reverse-wstunnelNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Starts a WebSocket tunnel server on port 8080.
Consider migrating to an actively maintained alternative like websocat or bore.
Only use -c in trusted environments or when connecting to your own server.
Use an older Node.js version or consider alternative tools.
Run 'wstunnel' alone to see usage.
Run 'npm install websocket' in your project or use npx which bundles dependencies.
Specify a different port with -s, e.g., 'wstunnel -s 9000'.
Run 'npx wstunnel' or install globally with 'npm install -g wstunnel'.
Ensure correct syntax: 'wstunnel -t localPort:remoteHost:remotePort ws://server:port'.