yii2-socketio icon indicating copy to clipboard operation
yii2-socketio copied to clipboard

Debug

Open buiduongthe opened this issue 6 years ago • 5 comments

Dear Yii2cod

Now, I can't debug code function handle in MarkAsReadEvent.php? I want to debug from client to Server Step by Step. I'm send message from Server to Client for result OK.

Thanks

buiduongthe avatar Aug 23 '19 03:08 buiduongthe

me too, can not handle message from client

phuongdev89 avatar Dec 26 '19 03:12 phuongdev89

yeah, I found solution, you should comment https://github.com/yiicod/yii2-socketio/blob/master/Broadcast.php#L71-L72

phuongdev89 avatar Dec 26 '19 03:12 phuongdev89

It suppose that you have db on the server side. You can add empty db connection for this or extend this class and comment the lines as proposed above

lexxorlov avatar Mar 15 '20 17:03 lexxorlov

Hi, I am sorry but this solution breaks package.

Yii::$app->db->close();
Yii::$app->db->open();

May be you have stable version ? Can I use this package in production ?

orangeShadow avatar May 23 '20 16:05 orangeShadow

It suppose that you have db on the server side. You can add empty db connection for this or extend this class and comment the lines as proposed above

Sorry you can explain me, why I need to reopen mysql connection ? And why in readme has any words about this ?

orangeShadow avatar May 23 '20 16:05 orangeShadow