Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug #17

Open
buiduongthe opened this issue Aug 23, 2019 · 5 comments
Open

Debug #17

buiduongthe opened this issue Aug 23, 2019 · 5 comments

Comments

@buiduongthe
Copy link

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

@phuongdev89
Copy link

me too, can not handle message from client

@phuongdev89
Copy link

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

@lexxorlov
Copy link
Member

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 lexxorlov reopened this Mar 15, 2020
@orangeShadow
Copy link

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
Copy link

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants