stream_socket_shutdown

Supported Versions: PHP 5 >= 5.2.1, PHP 7, PHP 8
Shutdown a full-duplex connection
stream_socket_shutdown(resource $streamint $mode): bool
                return true;

            }

            if (!
$socketIsFresh) {

                
stream_socket_shutdown($this->socket\STREAM_SHUT_RDWR);

                
fclose($this->socket);

                
$this->socket $this->createSocket();

            }