Closed BonBonSlick closed 3 years ago
let mercureToken = 'Bearer ' + Cookies.get("mercureAuthorization");
const event = new EventSourcePolyfill(
url,
{
heartbeatTimeout: 3600*1000,
headers: {
'Authorization': mercureToken,
},
},
);
It is not pinging urls but resubscribes to event streams every 20-90 seconds. This is insane load.| https://github.com/Yaffle/EventSource/issues/163 We have no loops nor intervals, resubscribe is called from this lib loop.
Should be something to disable or extend ping, resubscribe URLs every 45 seconds. Otherwise it may down server right after pushing code to prod.