|
@@ -412,7 +412,7 @@ class Ws
|
|
|
// Headbeat.
|
|
// Headbeat.
|
|
|
if (!empty($connection->websocketPingInterval)) {
|
|
if (!empty($connection->websocketPingInterval)) {
|
|
|
$connection->websocketPingTimer = Timer::add($connection->websocketPingInterval, function() use ($connection){
|
|
$connection->websocketPingTimer = Timer::add($connection->websocketPingInterval, function() use ($connection){
|
|
|
- if (false === $connection->send(pack('H*', '8900'), true)) {
|
|
|
|
|
|
|
+ if (false === $connection->send(pack('H*', '898000000000'), true)) {
|
|
|
Timer::del($connection->websocketPingTimer);
|
|
Timer::del($connection->websocketPingTimer);
|
|
|
$connection->websocketPingTimer = null;
|
|
$connection->websocketPingTimer = null;
|
|
|
}
|
|
}
|