To achieve your goal for HTML5 Server-Sent Events −
It would work for IE10 and IE11 as well. It starts with −
if ("EventSource" in global) return;
It only runs in web browsers that do not support EventSource.
Refer the following Git
Works for IE10 and IE 11 and it also provides bi-directional communication options.