Kafka\Socket::close PHP Метод

close() публичный Метод

close the socket
public close ( ) : void
Результат void
    public function close()
    {
        if (is_resource($this->stream)) {
            fclose($this->stream);
        }
    }

Usage Example

Пример #1
0
 /**
  * Close the connection
  *
  * @return void
  */
 public function close()
 {
     if (null !== $this->socket) {
         $this->socket->close();
     }
 }