我在Message函数中使用此代码来检查数据
public function onMessage(ConnectionInterface $from,$msg)
{
print_r($from->WebSocket->request->getQuery());
}
但此代码的输出为
Guzzle\Http\QueryString Object
(
[fieldSeparator:protected] => &
[valueSeparator:protected] => =
[urlEncode:protected] => RFC 3986
[aggregator:protected] =>
[data:protected] => Array
(
)
)
为什么数据在这里是空的?