array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'swoole-client.isconnected.php', 1 => 'Swoole\\Client::isConnected', 2 => 'Check if the connection is established.', ), 'up' => array ( 0 => 'class.swoole-client.php', 1 => 'Swoole\\Client', ), 'prev' => array ( 0 => 'swoole-client.getsockname.php', 1 => 'Swoole\\Client::getsockname', ), 'next' => array ( 0 => 'swoole-client.on.php', 1 => 'Swoole\\Client::on', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/swoole/swoole/client/isconnected.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

Swoole\Client::isConnected

(PECL swoole >= 1.9.0)

Swoole\Client::isConnectedCheck if the connection is established.

说明

public Swoole\Client::isConnected(): bool

This method returns the connection status of application layer.

参数

此函数没有参数。

返回值

Whether the connection is established.