gecko-dev/dom/base/test/eventsource_worker.js

7 строки
147 B
JavaScript

const es = new EventSource(
"http://mochi.test:8888/tests/dom/base/test/eventsource_message.sjs"
);
es.onmessage = function() {
es.close();
};