Running lib-jitsi-meet with node?

I actually wanted to stresstest the Jicofo component. So I tried to write a node app (I have no idea from node).

So I did

npm init

and installed lib-jitsi-meet

npm install lib-jitsi-meet

and then wrote script

const JitsiMeetJS = require('lib-jitsi-meet');

JitsiMeetJS.init();

I always get this error:

ReferenceError: window is not defined
at d (stresstest/node_modules/lib-jitsi-meet/dist/lib-jitsi-meet.min.js:1:33)
at stresstest/node_modules/lib-jitsi-meet/dist/lib-jitsi-meet.min.js:1:148
at Object. (stresstest/node_modules/lib-jitsi-meet/dist/lib-jitsi-meet.min.js:1:270)
at Module._compile (internal/modules/cjs/loader.js:1123:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:1143:10)
at Module.load (internal/modules/cjs/loader.js:972:32)
at Function.Module._load (internal/modules/cjs/loader.js:872:14)
at Module.require (internal/modules/cjs/loader.js:1012:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object. (stresstest/join.js:1:21)

Then I googled and I think I can not run it with node without a browser or something like this?

Wrtiting a stresstest that requries a browser seems not good. :confused: