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

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

Open kyan54 opened this issue 2 years ago • 4 comments

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 avatar Oct 26 '23 16:10 kyan54

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

Gnblog avatar Dec 20 '23 07:12 Gnblog

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

kyan54 avatar Dec 20 '23 12:12 kyan54

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

panghuohz avatar Jan 20 '24 22:01 panghuohz

Ennada panni vecheruke

adharsh-maptell avatar Apr 03 '24 07:04 adharsh-maptell