Merge branch 'main' of github.com:gzydong/hyperf-chat into main

main
gzydong 2020-12-04 13:38:57 +08:00
commit 412183584f
1 changed files with 2 additions and 1 deletions

View File

@ -115,7 +115,8 @@ class WebSocketController implements OnMessageInterface, OnOpenInterface, OnClos
// 判断是否为心跳检测
if ($frame->data == 'PING') return;
$result = SocketIOParser::decode($frame->data);
//$result = SocketIOParser::decode($frame->data);
$result = json_decode($frame->data,true);
if (!isset(self::EVENTS[$result['event']])) {
return;
}