vi

websocat

vi

A command-line client for WebSockets, like netcat (or curl) for ws:// with advanced socat-like functions.

v1.14.2
Published at
24d ago
8.8k
Stars
79.9k
Download

Latest release

v1.14.2Nov 12, 2026, 12:54 AM
Downloads slow? Switch the source anytime above

README

Project Overview

WebSocat is netcat, curl and socat for WebSockets.

Key Features

  • Connect to and serve WebSockets from the command line
  • Execute external programs and communicate via stdin/stdout
  • Text and binary modes with line/null-terminated record conversion
  • Inetd mode and UNIX socket support
  • SOCKS5 server integration
  • Auto-reconnect and connection-reuse modes
  • Linux, Windows, and Mac support

Target Audience

  • Developers needing to debug WebSockets
  • System administrators and DevOps engineers
  • Users needing scriptable WebSocket communication

Quick Start

  1. Connect to a public echo server: websocat ws://ws.vi-server.org/mirror
  2. Run via Docker: docker run --rm -ti ghcr.io/vi/websocat:nightly wss://ws.vi-server.org/mirror
  3. See more examples

Core Advantages

  • Feature-rich WebSocket command-line tool
  • Both server and client modes
  • Cross-platform (Linux, Windows, Mac)
  • Pre-built executables available

System Requirements

  • OS: Linux, Windows, macOS
  • Architectures: x86_64, arm64
  • Additional Dependencies: None

Notes

  • Available via multiple package managers (FreeBSD pkg, Debian apt, etc.)

Release history

Sort