Join 4,000+ others and never miss out on new tips, tutorials, and more.
pecl install openswoole-22.0.0 | composer require openswoole/core:22.1.2
<?php OpenSwoole\Coroutine\Http2\Client->ping(): bool
true when the ping is successful and
false when the ping fails.
The ping frame is a mechanism for measuring the minimum round-trip time from the sender and determining whether an idle connection is still valid or not.
For more information on the implementation of ping frames, see the HTTP/2 Ping Frame RFC document.