manx is a wscat clone. It's a simple interface to websocket servers.
One of its features is that it saves the prompt, so that you can easily see the commands you're typing even if you are receiving a flood of data.
For those learning Rust and async, manx shows how async websockets can interface with sync stdin and stdout loops.
Windows should be supported (although currently untested, please sent in bug reports!)
Thanks especially to smol, async-tungstenite, tungstenite, and linefeed, which provided the building blocks for this app.
Make sure you have Rust, then
cargo install manx
To connect to a ws server:
manx ws://echo.websocket.org
Options:
manx 0.4.0
Walther Chen <walther.chen@gmail.com>
Talk to websockets from cli
USAGE:
manx [FLAGS] [OPTIONS] <URL>
FLAGS:
-h, --help Prints help information
--show-ping-pong Print when ping or pong received.
-V, --version Prints version information
OPTIONS:
--cert <cert_path> Specify a client SSL Certificate
ARGS:
<URL>
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.