require('cometd-nodejs-client').
here is my console output
17:12:44.816 Transport long-polling started waiting for message replies of request 1 : 10000 ms
cometd.js?a421:1480 17:12:44.822 Transport long-polling received error Failed to fetch undefined
cometd.js?a421:1480 17:12:44.822 Transport long-polling cancelled waiting for failed message replies
cometd.js?a421:1480 17:12:44.822 handleFailure window.XMLHttpRequest {status: 0, statusText: "Failed to fetch", readyState: 4, responseText: "", open: ƒ, …} [{…}] {reason: "Failed to fetch", exception: undefined, httpCode: 0, connectionType: "long-polling"}
cometd.js?a421:1480 17:12:44.823 Transport failure {cause: "failure", action: "handshake", transport: null} for {id: "2", successful: false, channel: "/meta/handshake", failure: {…}}
cometd.js?a421:1480 17:12:44.823 Transport websocket accept, supported: false
cometd.js?a421:1480 17:12:44.823 Transport long-polling -> callback-polling
cometd.js?a421:1480 17:12:44.823 Transport failure handling {cause: "failure", action: "handshake", transport: F, delay: 1000}
cometd.js?a421:1480 17:12:44.823 Function scheduled in 1000 ms, interval = 0 backoff = 2000 () => {
_handshake(_handshakeProps, _handshakeCallback);
}
cometd.js?a421:1480 17:12:45.826 Invoking timed function () => {
_handshake(_handshakeProps, _handshakeCallback);
}
cometd.js?a421:1480 17:12:45.826 New advice {timeout: 60000, interval: 0, maxInterval: 0}
cometd.js?a421:1480 17:12:45.826 Transport websocket accept, supported: false
cometd.js?a421:1480 17:12:45.826 Initial transport is callback-polling
cometd.js?a421:1480