开发者

Socket.io socket data availability after disconnect

开发者 https://www.devze.com 2023-04-01 10:54 出处:网络
When the socket disconnect event is fired with socket.io (node.js), for how long will t开发者_开发问答he socket\'s data still be available?

When the socket disconnect event is fired with socket.io (node.js), for how long will t开发者_开发问答he 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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消