Wrench\Socket\Socket::disconnect PHP Méthode

disconnect() public méthode

Disconnect the socket
public disconnect ( ) : void
Résultat void
    public function disconnect()
    {
        if ($this->socket) {
            stream_socket_shutdown($this->socket, STREAM_SHUT_RDWR);
        }
        $this->socket = null;
        $this->connected = false;
    }