Sha256: f0b04632aa2c2afae2b386b6561ab3d238cd6ec6a47380777c52827541c82aef
Contents?: true
Size: 339 Bytes
Versions: 83
Compression:
Stored size: 339 Bytes
Contents
document.open_sse = function(url) { if (!!window.EventSource) { var source = new EventSource(url); source.onmessage = function(e) { console.log(e.data); }; source.onopen = function(e) { console.log('connection opened'); }; source.onerror = function(e) { source.close(); }; } };
Version data entries
83 entries across 83 versions & 1 rubygems