Skip to content
This repository has been archived by the owner on Apr 20, 2018. It is now read-only.

Latest commit

 

History

History
40 lines (28 loc) · 1.15 KB

fromworker.md

File metadata and controls

40 lines (28 loc) · 1.15 KB

Rx.DOM.fromWorker(url)

Creates a Web Worker with a given URL as a Subject.

Arguments

  1. url (String): The URL of the Web Worker.

Returns

(Subject): A Subject which wraps a Web Worker.

Example

var worker = Rx.DOM.fromWebWorker('worker.js');

worker.subscribe(function (e) {
  console.log(e.data);
});

worker.onNext('some data');

Location

File:

Dist:

Prerequisites:

NPM Packages:

NuGet Packages:

Unit Tests: