websocket-client
websocket-client copied to clipboard
Pings regularly, not in blocking receive wait?
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.
Pings are automatically sent, or so you want to send a message instead of a websocket ping?