eliihen / wsta

A CLI development tool for WebSocket APIs
GNU General Public License v3.0
632 stars 19 forks source link

Support ping/pong control frames #20

Open bradleyayers opened 7 years ago

bradleyayers commented 7 years ago

I've written a server that sends pings messages to clients, in order to detect broken connections, and I'd like to use wsta to interact with it. However it seems that wsta does not send pong messages in response to pings.

In my opinion wsta should (by default) reply to ping messages with pong, by just replying with the ping payload.

The current options for "ping" (e.g. -p) are a little confusing, since they're really just sending plain messages as opposed to ping frames.

eliihen commented 7 years ago

Hi,

Yes, I've wanted to implement this before, but not had the time. rust-websocket supports this, so it is possible to do without much effort.

We probably should bring the project up to date with its dependencies first, though, which is a fair bit of work in itself.