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

Provide a way to flush control messages #56

Open
singpolyma opened this issue Feb 22, 2014 · 2 comments
Open

Provide a way to flush control messages #56

singpolyma opened this issue Feb 22, 2014 · 2 comments

Comments

@singpolyma
Copy link

It would be nice if I could call sendPing and then call something that would do the normal "auto-handle control messages" logic (including the ConnectionClosed exception) without actually reading out the next data message.

@jaspervdj
Copy link
Owner

Hmm, I guess this makes sense. How would you use this in your application? Should it just block and return () when a data message is received?

Alternatively, would a way of pushing back a data message on the stream also suffice?

@singpolyma
Copy link
Author

Blocking and returning () is what I had in mind. A pushback mechanism would let me build this myself, if that fits better with the library goals.

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