Interactive WebSocket CLI (iwscli) v1.5.0 is an interactive command-line tool for debugging and testing WebSocket connections. It provides an interactive client (`wscli connect`) and server (`wscli listen`), as well as a proxy tool (`wstee`) for monitoring WebSocket traffic. Key differentiators include interactive keypress-driven commands for sending messages (client) and managing multiple clients (server), pipe mode for stdin/stdout integration, support for file-based input/output, and configurable WebSocket options via JSON. Released March 2023, with a steady cadence of minor updates. Commonly used in development workflows for manually testing WebSocket endpoints or proxying traffic.
npm install interactive-websocket-cliNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to install and use wscli to connect to a WebSocket server, start a server, and use wstee for proxying.
Always specify the full URL (ws:// or wss://) when connecting to avoid automatic prefix.
Add -p flag when using --in: wscli connect -p --in messages.txt ws://example.com
Upgrade to v1.5.0+ and use CLI flags (--proxy-url, --listen-port) instead of config files.
Press 's', enter client numbers (e.g., 1,2), then press 't' and type message.
Run npm i -g interactive-websocket-cli to install all dependencies globally.
Install globally: npm i -g interactive-websocket-cli. Ensure global node_modules bin is in PATH.
Use wscli connect <url> or wscli listen <port>.
Use ws://localhost:9000 without path.