websocat
Command-line client for WebSockets, like netcat (or curl)
Netcat, curl and socat for WebSockets. Command-line client for WebSockets, like netcat (or curl) for ws:// with advanced socat-like functions. Connecting to and serving WebSockets from the command line. Executing external program and making it communicate to WebSocket using stdin/stdout. Text and binary modes, converting between lines (or null-terminated records) and messages. Inetd mode, UNIX sockets (including abstract namespaced on Linux). Integration with Nginx using TCP or UNIX sockets. Directly using unauthenticated SOCKS5 servers for connecting to WebSockets and listening WebSocket connections. Auto-reconnect and connection-reuse modes. Linux, Windows, and Mac support, with pre-built executables. Low-level WebSocket clients and servers with an overridable underlying transport connection, e.g. calling an external program to serve as a transport for websocat (for SSL, proxying, etc.).