public function close()
    {
        if ($this->streamSocket === null) {
            return;
        }

        fclose($this->streamSocket);
        $this->streamSocket = null;
    }
public function close()
    {
        if ($this->streamSocket === null) {
            return;
        }

        fclose($this->streamSocket);
        $this->streamSocket = null;
    }
public function close ( ) { if ( $ this -> streamSocket === null ) { return ; } fclose ( $ this -> streamSocket ) ; $ this -> streamSocket = null ; }
Close will close the connection to the server.

@return void
Close will close the connection to the server .