ReferenceError: WebSocket is not defined
at Object.client (/Users/pongli/my/git/sandbox/JavaScript/ActivemqTest/node_modules/webstomp-client/dist/webstomp.js:881:18)
at Object. (/Users/pongli/my/git/sandbox/JavaScript/ActivemqTest/webstomp-client.js:12:23)
ReferenceError: WebSocket is not defined at Object.client (/Users/pongli/my/git/sandbox/JavaScript/ActivemqTest/node_modules/webstomp-client/dist/webstomp.js:881:18) at Object. (/Users/pongli/my/git/sandbox/JavaScript/ActivemqTest/webstomp-client.js:12:23)
I think you may need to import ws.