dxFeed / dxfeed-js-api

dxFeed JavaScript API
https://dxfeed.github.io/dxfeed-js-api/
Mozilla Public License 2.0
8 stars 14 forks source link

NoT working on Nodejs #32

Closed metinkun closed 1 year ago

metinkun commented 1 year ago

not working on nodejs i am getting this error

node_modules/cometd/cometd.js:3573
        if (window.WebSocket) {
        ^

ReferenceError: window is not defined
Fyzu commented 1 year ago

@metinkun check the readme, we have updated the part on how to run it on nodejs Also, you can look at NodeJS example: https://github.com/dxFeed/dxfeed-js-api/blob/master/examples/nodejs-candles.cjs