GatewayWorker did not trigger onclose

Logic for detecting heartbeat

$gateway->pingInterval = 200;
$gateway->pingNotResponseLimit = 1;
$gateway->pingData = "";

then power off a connection that does not trigger onclose.
those who quit normally are.
is this the reason why the heartbeat device has been used for too long?

May.22,2021

the heartbeat setting is too long. This configuration should be 200 seconds at the latest to trigger onClose.
$gateway- > pingInterval = 30th, so that onClose can be triggered within 30 seconds

Menu