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

如何在服务端知道前后端是什么原因断开的?How does the server know the cause of the disconnection? #938

Open
kyan54 opened this issue Oct 26, 2023 · 4 comments

Comments

@kyan54
Copy link

kyan54 commented Oct 26, 2023

The user thinks that there is a problem with the server. How to catch the cause of disconnection on the server?

The front-end uses socket-client2.2 and connects to the server through websocket

I use version 2.0.3 here on the back end
2.2.0 for the front-end
But often disconnect, ask to find out what is the reason for the disconnect
How can I know what is the cause of disconnection, by capturing packets or something?

用户认为服务器有问题。如何查找服务器断开连接的原因?
前端使用socket-client2.2,通过websocket连接到服务器

我后端用的这边的版本2.0.3
前端用的2.2.0
但是经常断开,要求查是什么原因断开的
如何才能知道是什么原因断开的,通过抓包之类的方式可以吗?

@kyan54 kyan54 changed the title How does the server know the cause of the disconnection? 如何在服务端知道前后端是什么原因断开的?How does the server know the cause of the disconnection? Nov 7, 2023
@Gnblog
Copy link

Gnblog commented Dec 20, 2023

我也是,在服务器上就会莫名其妙断开,再本地测试就没问题

@kyan54
Copy link
Author

kyan54 commented Dec 20, 2023

@Gnblog 你知道怎么抓这种包吗?怎么分析是哪里发起的断开

@panghuohz
Copy link

你是一点文档也不看,Socket.IO 现在完全由 TJ Holowaychuk 开发的名为debug的简约但功能强大的实用程序进行检测。

@adharsh-maptell
Copy link

Ennada panni vecheruke

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