hashrocket / ws Goto Github PK
View Code? Open in Web Editor NEWwebsocket command line tool
License: MIT License
websocket command line tool
License: MIT License
I think this should send a CloseMessage frame before closing the connection, rather than just sending an EOF as at the moment. I think s.ws.WriteMessage(websocket.CloseMessage, []byte{})
in the error handling part of readConsole
would do this, but my go isn't good enough for me to be sure.
Currently all packets are sent with text mode. It would be nice to be able to either specify the opcode (refer to here), or have a --bin
option to send just send the opcode 2 instead.
Hi,
I am trying to test an authenticated websocket endpoint using this tool. To do this I need to send an Authorization header to the endpoint so it can authenticate my connection. Unfortunately, I have no way to do this with this tool. I saw that you already have a flag to set the Origin header - would it be possible to allow users to set arbitrary headers, like curl
does?
Thank you!
with:
Linux ubntvm 4.15.0-34-generic #37-Ubuntu SMP Mon Aug 27 15:21:48 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
@ubntvm:$ go get -v -u github.com/hashrocket/ws$ ws
github.com/hashrocket/ws (download)
@ubntvm:
ws: command not found
@ubntvm:~$
Hi,
I've just downloaded ws to try debugging a problematic service with it, and it looks like there's something fundamentally wrong with the setup:
websocket: bad handshake
However, that's as much as I can get from ws. Could you please consider a typical --verbose or -d/--debug switch so that ws would dump all it knows about the connection in such cases? Thanks, and keep up the good work!
ws does not appear to register a proper signal handler, so when the application is terminated with SIGINT, then ws often fails to restore the color codes back to normal on exit.
As a workaround, I keep having to explicitly call bash's reset
command.
I would love to be able to pull this into my tooling, for example in dockerfiles.
Would you be able to add binaries to the releases?
first of, great program.
But i have an issue trying to redirect commands stored in files.
./ws wss://servername < file
causes EOF message end exit.
However stdout redirection works allright and i can ./ws servername > file without any issues (other than blindtyping commands).
Ubuntu 16.04 but same issue occurs on Debian 8
Please let users input WebSocket URL's as http
/ https
, since that's how WebSocket addresses are actually served and used.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.