Catching eventsource Yaffle Polyfill exception

Hello,

I’m using ss-utils with Yaffle Polyfill eventsource.js, The eventsource.js sometimes throws exception

throw new Error("No activity within " + heartbeatTimeout + " milliseconds. Reconnecting.");

For some reason it isn’t catched by “onerror” handler and not handled by ss-utils. Does anyone have any recommendations how to handle this exception?

Thank you,
Leo

The documentation for the Yaffle Pollyfill suggests to use:

es.addEventListener("error", listener);