Last updated 5 years ago
Was this helpful?
[Ⓣ][1]
Creates a Web Worker with a given URL as a Subject.
Rx.DOM.fromWebWorker(url);
url (String): The URL of the Web Worker.
url
(Subject): A Subject which wraps a Web Worker.
var worker = Rx.DOM.fromWebWorker('worker.js'); worker.subscribe(function (e) { console.log(e.data); }); worker.onNext('some data');