Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Always check for valid reconnect window before making a request in clients #2513
Before the client makes any request (after connecting) it should always check to ensure that the time since the server was last heard from (the last successful result from the server) is less than the configured disconnect threshold.
This is in addition to the keep alive check that runs in forever transports. It helps address scenarios where the client makes requests although the server has already disconnect them, e.g. when a browser is suspended on a mobile device.