Sfoglia il codice sorgente

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 8 anni fa
parent
commit
ea04a07d29
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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;
                     }