rx-polling icon indicating copy to clipboard operation
rx-polling copied to clipboard

doesn't work with nodejs

Open RichardWright opened this issue 4 years ago • 0 comments

Running this within nodejs fails with this error

return rxjs_1.fromEvent(document, 'visibilitychange').pipe(operators_1.startWith(null), operators_1.switchMap(function () { ReferenceError: document is not defined at polling (/Users/83592/projects/metrics-emitter/node_modules/rx-polling/lib/index.js:27:29)

Will this always be a client side library?

RichardWright avatar Oct 10 '21 14:10 RichardWright