diff options
Diffstat (limited to 'dom/base/test/eventsource_worker.js')
-rw-r--r-- | dom/base/test/eventsource_worker.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/dom/base/test/eventsource_worker.js b/dom/base/test/eventsource_worker.js new file mode 100644 index 0000000000..863d52eec1 --- /dev/null +++ b/dom/base/test/eventsource_worker.js @@ -0,0 +1,6 @@ +const es = new EventSource( + "http://mochi.test:8888/tests/dom/base/test/eventsource_message.sjs" +); +es.onmessage = function () { + es.close(); +}; |