stream_socket_shutdown
reactphp/event-loop
Supported Versions: PHP 5 >= 5.2.1, PHP 7, PHP 8
Shutdown a full-duplex connection
<?php stream_socket_shutdown
(
resource $stream
,
int $mode
):
bool