/wurl

Console client for websocket protocol

Primary LanguageGoMIT LicenseMIT

wurl - console client for websocket protocol

Documentation Go Report Card License: MIT

Abstract

At the moment we already have quite few websocket clients. Starting from browser addons, ending with console clients.

But I`m not satisfied with either of them. Browser addons requires installed and running browser. NodeJS-based clients requires node and tons of dependencies. But most importantly, none of them allows you to specify additional headers for request.

So I decided to write own console websocket client...

Installation

go get -u github.com/xakep666/wurl

vgo get -u github.com/xakep666/wurl

Pre-built binary releases available for:

  • Linux: x86_64, x86, arm
  • Mac OS (darwin): x86_64
  • Windows: x86_64, x86

Current features

  • Read text/binary messages from connection and display it
  • Ability to set additional headers for connection upgrade request
  • Correctly processes ping message (by default responses with pongs message)
  • Can periodically send ping message to server (period can be set through flags)

TODOs for v1

  • Document all packages
  • Flag to show handshake response
  • Store and load options from file
  • Warning about binary messages before displaying (cURL-like)
  • Ability to specify output
  • Option to send message to server before reading
  • Good description for all flags/commands
  • Proxy support
  • Bash autocomplete
  • Package to rpm, deb, for Arch (after release)