CLI tool that creates a server to accept WebSocket connections and forward them to a TCP socket. Version 0.5.2, with infrequent releases. Supports single or multiple tunnels (via wstcpm), optional sub-protocol naming, string mode for non-binary WebSocket servers, and SSL/TLS. Designed for emulated retro computing (e.g., Commodore 64 BBS) but usable for generic TCP-over-WebSocket proxying. Minimal dependencies; pure Node.js.
npm install websocket-to-tcpNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Installs the tool globally and creates a tunnel from WebSocket port 8080 to bbs.sblendorio.eu:6510 with sub-protocol 'bbs'.
Use `wstcp` for single tunnel, `wstcpm` for multi-tunnel config.
Ensure client WebSocket uses the same protocol name as the `-n` argument.
Consider alternatives like `websocat` or custom Node.js proxy for more features.
Choose a different port with `-w <newport>` or kill the process using that port.
Verify TCP server is running and accessible from your machine.