How to select EventSource timeout value

混江龙づ霸主 提交于 2019-12-08 05:52:24

问题


In most libraries there is timeout parameter for SSE connection which is usually set to 1 second or to infinity by default.

This means, that server will close SSE connection in 1 second, and client after that should reconnect again.

What i should take into account selecting the value for SSE connection timeout ?

Why not set it to 10 minutes or 24 hours for example ?

来源:https://stackoverflow.com/questions/57325517/how-to-select-eventsource-timeout-value

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!