vi / websocat

Command-line client for WebSockets, like netcat (or curl) for ws:// with advanced socat-like functions
MIT License
7.17k stars 278 forks source link

How to use autoreconnect and foreachmsg at the same time #130

Open kuaifan opened 3 years ago

kuaifan commented 3 years ago
websocat -t - autoreconnect:ws://127.0.0.1:8888 foreachmsg:exec:/usr/sdwan/config/aa.sh

image

vi commented 3 years ago

What to you mean by - after -t?

Where should the data for script come from? Stdin or websocket?