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

Pings regularly, not in blocking receive wait? #29

Open
programmin1 opened this issue Feb 19, 2021 · 1 comment
Open

Pings regularly, not in blocking receive wait? #29

programmin1 opened this issue Feb 19, 2021 · 1 comment

Comments

@programmin1
Copy link

This is a very handy library... but what if I want to listen, as in the example

while ($message = yield $connection->receive()) { ...

but also ping every x seconds even if there was nothing received?
A websocket might need regular pings to stay active.

@kelunik
Copy link
Member

kelunik commented Feb 19, 2021

Pings are automatically sent, or so you want to send a message instead of a websocket ping?

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

No branches or pull requests

2 participants