Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support ping/pong control frames #20

Open
bradleyayers opened this issue Sep 12, 2017 · 1 comment
Open

Support ping/pong control frames #20

bradleyayers opened this issue Sep 12, 2017 · 1 comment

Comments

@bradleyayers
Copy link

bradleyayers commented Sep 12, 2017

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.

@bradleyayers bradleyayers changed the title Reply to ping messages Support ping/pong control frames Sep 12, 2017
@eliihen
Copy link
Owner

eliihen commented Sep 12, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants