Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Swoole\Server::getLastErrorSwoole\Server::listen>
^Swoole\ServerLast updated: Mon, 26 Oct 2026

Swoole\Server::heartbeat

(PECL swoole >= 1.9.0)

Swoole\Server::heartbeat — Check all the connections on the server.

Description

public function Swoole\Server::heartbeat(bool $if_close_connection): mixed

Parameters

if_close_connection

Return Values


<Swoole\Server::getLastErrorSwoole\Server::listen>
^Swoole\ServerLast updated: Mon, 26 Oct 2026