Quellcode durchsuchen

Merge pull request #217 from vponomarev/master

Websocket - outgoing PING packets, now this packet contains MASK.
walkor vor 8 Jahren
Ursprung
Commit
676a15f971
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      Protocols/Ws.php

+ 1 - 1
Protocols/Ws.php

@@ -412,7 +412,7 @@ class Ws
             // Headbeat.
             if (!empty($connection->websocketPingInterval)) {
                 $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);
                         $connection->websocketPingTimer = null;
                     }