wscat -l 3000

Category: Web App Development

wscat -l 3000

Listen for an incoming WebSocket on port 3000

Starts a WebSocket server that accepts a single client and echoes its messages, handy for testing client code without a backend. The -l flag selects listen mode with the port. Messages from the client print on your terminal.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.