瀏覽代碼

fix send int

walkor 9 年之前
父節點
當前提交
8750c7dd5b
共有 1 個文件被更改,包括 1 次插入0 次删除
  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);
         }