summaryrefslogtreecommitdiffstats
path: root/dom/base/test/eventsource_worker.js
blob: 863d52eec12e63466c9fdc0ad7c9e3aa45ce4db8 (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();
};