wurl

command module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 21, 2018 License: MIT Imports: 11 Imported by: 0

README

wurl - console client for websocket protocol

Documentation Go Report Card

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)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package flags contains description of all command-line flags
Package flags contains description of all command-line flags
pkg
client
Package client contains basic types for clients implementations
Package client contains basic types for clients implementations
client/gorilla
Package gorilla contains websocket client implementation using "github.com/gorilla/websocket" library.
Package gorilla contains websocket client implementation using "github.com/gorilla/websocket" library.
util
Package util contains useful functions for client.
Package util contains useful functions for client.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL