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\Server->exist(int $fd): bool
The file descriptor number of the client connection you want to check exists or not
If success, it returns 'true', otherwise it returns
Check whether the
$fd which indicates a TCP client connection exists or not.
true if it does and
false if it does not exist.
This method is completely asynchronous, no IO operations as it is based off shared memory.