socket.io icon indicating copy to clipboard operation
socket.io copied to clipboard

Disconnect reasons missing from documentation

Open terreng opened this issue 3 years ago • 0 comments

There are a few possible server disconnection reasons that aren't in the documentation. I have come across forced close and forced server close, and there are possibly more. It looks like forced close is also possible on the client side, and it isn't in the client documentation either.

It would be great if these missing client and server disconnection reasons could be added to the documentation to make it easier to determine what they mean. Thank you.

terreng avatar Jun 02 '22 23:06 terreng

For future readers:

The missing disconnection reasons were added in the documentation: https://socket.io/docs/v4/server-api/#event-disconnect

And also directly in the source code: https://github.com/socketio/socket.io/commit/10fa4a2690fafcf9415e49aad507394e0b9a9ab0

Thanks for the heads-up! :+1:

darrachequesne avatar Sep 13 '22 06:09 darrachequesne