Browse Source

fix send int

walkor 9 years ago
parent
commit
8750c7dd5b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Protocols/Ws.php

+ 1 - 0
Protocols/Ws.php

@@ -184,6 +184,7 @@ class Ws
      */
     public static function encode($payload, $connection)
     {
+        $payload = (string)$payload;
         if (empty($connection->handshakeStep)) {
             self::sendHandshake($connection);
         }