Comments (4)
Would just adding INFO logs for them be enough?
from websocat.
Pings, pongs and closing should be visible in verbose mode:
$ websocat -v ws://echo.websocket.org --ping-interval=1
[INFO websocat::lints] Auto-inserting the line mode
[INFO websocat::sessionserve] Serving Line2Message(Stdio) to Message2Line(WsClient("ws://echo.websocket.org/")) with Options { websocket_text_mode: true, websocket_protocol: None, websocket_reply_protocol: None, udp_oneshot_mode: false, unidirectional: false, unidirectional_reverse: false, exit_on_eof: false, oneshot: false, unlink_unix_socket: false, exec_args: [], ws_c_uri: "ws://0.0.0.0/", linemode_strip_newlines: false, linemode_strict: false, origin: None, custom_headers: [], custom_reply_headers: [], websocket_version: None, websocket_dont_close: false, one_message: false, no_auto_linemode: false, buffer_size: 65536, broadcast_queue_len: 16, read_debt_handling: Warn, linemode_zero_terminated: false, restrict_uri: None, serve_static_files: [], exec_set_env: false, reuser_send_zero_msg_on_disconnect: false, process_zero_sighup: false, process_exit_sighup: false, socks_destination: None, auto_socks5: None, socks5_bind_script: None, tls_domain: None, tls_insecure: false, max_parallel_conns: None, ws_ping_interval: Some(1), ws_ping_timeout: None }
[INFO websocat::stdio_peer] get_stdio_peer (async)
[INFO websocat::stdio_peer] Setting stdin to nonblocking mode
[INFO websocat::stdio_peer] Installing signal handler
[INFO websocat::ws_client_peer] get_ws_client_peer
[INFO websocat::ws_client_peer] Connected to ws
[INFO websocat::ws_peer] Sending WebSocket ping
[INFO websocat::ws_peer] Received a pong from websocket
ewqrewqrewqr
ewqrewqrewqr
[INFO websocat::ws_peer] Sending WebSocket ping
[INFO websocat::ws_peer] Received a pong from websocket
[INFO websocat::ws_peer] Sending WebSocket ping
[INFO websocat::ws_peer] Received a pong from websocket
24214321
24214321
[INFO websocat::ws_peer] Sending WebSocket ping
[INFO websocat::ws_peer] Received a pong from websocket
[INFO websocat::ws_peer] Sending WebSocket ping
[INFO websocat::ws_peer] Received a pong from websocket
[INFO websocat::sessionserve] Forward finished
[INFO websocat::sessionserve] Forward shutdown finished
[INFO websocat::sessionserve] Reverse finished
[INFO websocat::sessionserve] Reverse shutdown finished
[INFO websocat::sessionserve] Finished
[INFO websocat::stdio_peer] Restoring blocking status for stdin
[INFO websocat::stdio_peer] Restoring blocking status for stdin
from websocat.
@vi only client initiated pings show up, but when the server sends a ping, websocat responds with a pong but nothing shows up in the terminal output (i confirmed by inspecting through wireshark).
from websocat.
Note that those pings and closes are already visible if you increase the logging level further websocat -v -v
.
I made them INFO
and now should be visible at one -v
.
from websocat.
Related Issues (20)
- Can websocat perform force resolve? HOT 2
- Does the latest version support reverse connections? HOT 1
- Feature Request: Wait until connection has first packet to open other connection HOT 3
- Feature Proposal: Add message framing to binary stream i/o HOT 8
- How do you get your own socket ID? HOT 2
- TCP socket listen does not work on Windows HOT 2
- Many zombie process HOT 2
- warnings with ping when disconnecting the socket
- Adding a timeout option for connection
- send a message and listen for incoming messages HOT 1
- "Advanced" mode does not proxy connections (upgrade failed) HOT 1
- Debugging output is useless HOT 1
- What do I do with the file? Say 'websocat.aarch64-unknown-linux-musl' I downloaded, now what? HOT 2
- Executable no longer statically linked HOT 3
- unable to run external commands in background or from crontab HOT 9
- what is the value of "--just-generate-accept" HOT 4
- `let res = stage1.custom_headers(&h);` got block HOT 6
- provide interface that accepts `Opts` and `std::process::Stdio` HOT 3
- Binary response frames are not handled well HOT 5
- Binary Frames support HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from websocat.