cometd / cometd-nodejs-client

CometD client for NodeJS
Apache License 2.0
17 stars 7 forks source link

ReferenceError: window is not defined #19

Closed thelazyrk closed 4 years ago

thelazyrk commented 5 years ago

I'm trying to use with the version 1.0.3 with cometd@3.1.10 I get the error

ReferenceError: window is not defined
at new CometD (~/node_modules/cometd/cometd.js:3303:9)

Usage:

require('cometd-nodejs-client').adapt()
const lib = require('cometd')
const TimeStampExtension = require('cometd/TimeStampExtension')
const cometd = new lib.CometD()

I see a couple of other issues where window object is not present but they look like different problems.

sbordet commented 4 years ago

Please update to the latest cometd version.