websocat -s 1234

Category: Web App Development

websocat -s 1234

Run a WebSocket echo server on port 1234

Starts a WebSocket server that echoes back whatever clients send, great for testing WebSocket client code. The -s flag selects server mode with the given port. Connect from another terminal with websocat ws://127.0.0.1:1234/.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.