OpenSwoole\Coroutine\Http2\Client->close()

Latest version: pecl install openswoole-22.1.2 | composer require openswoole/core:22.1.5

Declaration

<?php OpenSwoole\Coroutine\Http2\Client->close(): bool

Parameters

None

Return

Returns true when the close was successful and false when not. Check $client->errCode for more details on failures.


Description

Closes the client established connection.

You may reconnect again after closing using the same client.


Example

Check the main Quick Start Examples to see how the close() method is used in its full context.

Last updated on September 1, 2022