Opened this issue 6 years ago · 2 comments
Uncaught ErrorException: unpack(): Type N: not enough input, need 4, have 0 in .../vendor/hprose/hprose-swoole/src/Hprose/Swoole/WebSocket/Client.php:174
174 行
list(, $id) = unpack('N', substr($data, 0, 4));
看上去像是服务器并没有返回数据。
go 写的wsClient 并没有这个问题 😂