初始化
parent
495a3b8b5b
commit
b9c14e28f7
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue