nodejs websocket detect disconnected socket

前端 未结 4 2274
余生分开走
余生分开走 2021-01-04 20:30

I have a nodejs websocket server and I have the following problem.

When my clients connect to the server and terminate gracefully the onclose method is

4条回答
  •  忘掉有多难
    2021-01-04 21:20

    You can check it in the official library documentation. I don't want to copy-paste it here because it can be out of date soon.

提交回复
热议问题