Join 4,000+ others and never miss out on new tips, tutorials, and more.
4.x is outdated, please check the latest version 25.x
Latest version:
pecl install openswoole-25.2.0
<?php Swoole\Coroutine\Http2\Client->close(): bool
None
Returns true when the close was successful and false when not. Check $client->errCode for more details on failures.
Closes the client established connection.
You may reconnect again after closing using the same client.
Check the main Quick Start Examples to see how the close() method is used in its full context.