初始化

main
gzydong 2020-12-03 19:48:48 +08:00
parent 495a3b8b5b
commit b9c14e28f7
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;
}