wscat

command module
v0.0.0-...-6bd59a2 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2017 License: MIT Imports: 6 Imported by: 0

README

wscat - WebSocket cat

Abstract

I would like to use wscat on macOS, but this requires to install Node.js. So I decide to make the same command without Node.js. And I am learning Golang. This is a chance to learn more Golang through making this command.

Build

$ go build wscat.go

Usage

$ ./wscat ws://echo.websocket.org

Or,

$ ./wscat -c ws://echo.websocket.org

You can use -i option when a sending data to a WebSocket server reads from a file. Also you can use -o option when a receiving data from a WebSocket server saves to a file you want. When you don't specify any options, sending data reads stdio and receiving data writes stdout.

$ ./wscat -c ws://echo.websocket.org -i send.txt -o recv.txt

License

MIT License

Documentation

Overview

*

  • wscat: WebSocket cat
  • Copytright (c) 2017 Atsushi Ezura <zura@zura.org>
  • This software is released under the MIT License, see LICENSE.md

Jump to

Keyboard shortcuts

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