wsc
github.com/zurazurataicho/wscat
go get github.com/zurazurataicho/wscat
wsc

github.com/zurazurataicho/wscat

a WebSocket cat.

by Atsushi Ezura

v0.0.0-20170805015202-6bd59a2d57e3 (see all)License:MIT
go get github.com/zurazurataicho/wscat
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

GitHub Stars

11

LAST COMMIT

5yrs ago

MAINTAINERS

0

CONTRIBUTORS

2

OPEN ISSUES

0

OPEN PRs

0
VersionTagPublished
v0.0.0-20170805015202-6bd59a2d57e3
3yrs ago
No alternatives found
No tutorials found
Add a tutorial