Closed ZoomyCat closed 7 years ago
Seems like a reasonable request. I'll see what I can do.
In the mean time, since wsta
reads from stdin, you can use a script like this:
#!/bin/bash
while [ true ]; do
echo '{"type": "PING"}'
sleep 1
done | wsta wss://pubsub-edge.twitch.tv
Done. It's rolling out now
Good job. I posted, went to sleep. Woke up and you had fixed it!
I'm planning on using your tool to automate connection to the PubSub system that twitch uses.
It requires the pings be sent as
'{"type": "PING"}'
and through the standard -p system I do not see a responce pong for a ping with this flag set.Here is what I get by default and I am sure this is expected behavior for you:
Here is what I need to be able to tell it to do from a ping. A flag that allowed you to set the ping string sent would resolve the issue.
If the ping command allowed me to send
'{"type": "PING"}'
as the ping data this would be perfect.