theturtle32 / WebSocket-Node

A WebSocket Implementation for Node.JS (Draft -08 through the final RFC 6455)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Weird socket connection close

pluzmedia opened this issue · comments

After the socket connection established to node server, when the client internet is dropped the node server is clueless whether the client socket connection is active or not but after some time the node server will close the client socket connection. After that we attempting to reconnect the node server when the client have active internet connection which is working fine.

But here is the issue, after the client's internet dropped and again attempting to reconnect the node server when the client internet connection is active the connection is established with node server even before the previous client socket connection closed by the node server, after some time both client socket connections are getting closed by the server. It is working fine if we reconnect to the node server after the server closed the previous client socket connection. Is this a normal behavior?