summaryrefslogtreecommitdiffstats
path: root/dom/base/test/eventsource_worker.js
blob: c3dda55271891cdca6b1f68fed1af17b01dde069 (plain)
1
2
3
4
5
6
const es = new EventSource(
  "http://mochi.test:8888/tests/dom/base/test/eventsource_message.sjs"
);
es.onmessage = function() {
  es.close();
};