🍺 BREW Explorer

← all formulae

websocat

brew install websocat v1.14.1 MIT

Command-line client for WebSockets

959
30-day installs · #1322
3.4k
90-day · #1285
16.2k
365-day · #1173
8.6k
★ GitHub stars · updated 7mo ago

Build dependencies

GitHub topics

cli command-line command-line-tool curl netcat proxy rfc-6455 socat websocket-client websocket-server websockets

Links

Raw metadata
{
  "aliases": [],
  "alternatives": [],
  "build_dependencies": [
    "pkgconf",
    "rust"
  ],
  "categories": [],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Command-line client for WebSockets",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:41:25+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "websocat",
  "github_default_branch": "master",
  "github_last_commit_at": "2025-12-27T23:16:24Z",
  "github_readme_excerpt": "# websocat\nNetcat, curl and socat for [WebSockets](https://en.wikipedia.org/wiki/WebSocket).\n\n[![Gitter](https://badges.gitter.im/websocat.svg)](https://gitter.im/websocat/Lobby?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=body_badge)\n[![image-build](https://github.com/vi/websocat/actions/workflows/container-image-buildah.yml/badge.svg)](https://github.com/vi/websocat/pkgs/container/websocat)\n\n## Examples\n\n### Connect to public echo server (Ctrl+d to quit)\n\n```\n$ websocat ws://ws.vi-server.org/mirror\n123\n123\nABC\nABC\n\n$ docker run --rm -ti ghcr.io/vi/websocat:nightly wss://ws.vi-server.org/mirror\n123\n123\nABC\nABC\n```\n\n### Serve and connect\n\n```\nA$ websocat -s 1234\nListening on ws://127.0.0.1:1234/\nABC\n123\n\nB$ websocat ws://127.0.0.1:1234/\nABC\n123\n```\n\n### Open a tab in Chromium using remote debugging.\n\n```\n$ chromium --remote-debugging-port=9222\u0026\n$ curl -sg http://127.0.0.1:9222/json/new | grep webSocketDebuggerUrl | cut -d\u0027\"\u0027 -f4 | head -1\nws://127.0.0.1:9222/devtools/page/A331E56CCB8615EB4FCB720425A82259\n$ echo \u0027Page.navigate {\"url\":\"https://example.com\"}\u0027 | websocat -n1 --jsonrpc --jsonrpc-omit-jsonrpc ws://127.0.0.1:9222/devtools/page/A331E56CCB8615EB4FCB720425A82259\n{\"id\":2,\"result\":{\"frameId\":\"A331E56CCB8615EB4FCB720425A82259\",\"loaderId\":\"EF5AAD19F2F8BB27FAF55F94FFB27DF9\"}}\n```\n\n\n### Proxy TCP connections to WebSocket connections and back.\n\n```\n$ websocat --oneshot -b ws-l:127.0.0.1:1234 tcp:127.0.0.1:22\u0026\n$ websocat --oneshot -b tcp-l:127.0.0.1:1236 ws://127.0.0.1:1234/\u0026\n$ nc 127.0.0.1 1236\nSSH-2.0-OpenSSH_7.4p1 Debian-10+deb9u3\nqwertyu\nProtocol mismatch.\n```\n\n\n### Broadcast all messages between connected WebSocket clients\n\n```\nA$ websocat -t ws-l:127.0.0.1:1234 broadcast:mirror:\nB$ websocat ws://127.0.0.1:1234\nC$ websocat ws://127.0.0.1:1234\n```\n\n(if you like this one, you may actually want https://github.com/vi/wsbroad/ instead)\n\nSee [moreexamples.md](./moreexamples.md) for further examples.\n\n## Features\n\n* Connecting to and serving WebS",
  "github_repo": "vi/websocat",
  "github_stars": 8562,
  "github_topics": [
    "cli",
    "command-line",
    "command-line-tool",
    "curl",
    "netcat",
    "proxy",
    "rfc-6455",
    "socat",
    "websocket-client",
    "websocket-server",
    "websockets"
  ],
  "homepage": "https://github.com/vi/websocat",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": null,
  "installs_30d": 959,
  "installs_365d": 16224,
  "installs_90d": 3409,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "MIT",
  "llm_generated_at": null,
  "llm_model": null,
  "name": "websocat",
  "oldnames": [],
  "one_liner": null,
  "optional_dependencies": [],
  "rank_30d": 1322,
  "rank_365d": 1173,
  "rank_90d": 1285,
  "raw_hash": "b944a89c75569fc2",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/w/websocat.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [],
  "version_head": null,
  "version_stable": "1.14.1",
  "versioned_formulae": [],
  "why_use_this": null
}