Question

When the socket disconnect event is fired with socket.io (node.js), for how long will the socket's data still be available?

If I have a store (like redis) that asynchronously returns data, is it safe to still perform lookups?

I need to get all data of a socket in order to save the socket's state when it disconnects.

Thanks a lot.

Was it helpful?

Solution

The server has 'client store expiration' option, it's set to 15 (sec) by default.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top