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 can I pass an argument with websocat without using echo? #254

Closed Oroborius closed 3 months ago

Oroborius commented 3 months ago

I am trying to pass a string using websocat inside of streamdeck-linux-gui. Normally in kitty I could do something like this: echo Calibrate | websocat ws://localhost:19190/ which would output and fire successfully. Now the issue is that in this program it executes echo a little bit differently and instead everything after echo gets passed as a string and websocat isn't triggered. Attempting to invoke websocat on it's own works but I cannot for the life of me figure out how to pass a string to it. Any help will be greatly appreciated! :-)

vi commented 3 months ago

Maybe you want --preamble?

Oroborius commented 3 months ago

This works! Thanks so much! :-)