Quellcode durchsuchen

Websocket - outgoing PING packets, now this packet contains MASK.
According to Section 5.2 of the specification, all frames from client to server have the mask bit set to 1.

Vitaliy Ponomarev vor 8 Jahren
Ursprung
Commit
ea04a07d29
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;
                     }