Hi, I am trying to test a simple web socket using the “hello world” that is provided in the documentation but i end up getting this error. Not sure if it has to do with Node JS version. My version is v6.17.1. Any help would be appreciated. Thank you …
[root@localhost ~]# /usr/lib/node_modules/wscat/node_modules/ws/lib/websocket.js:348
…options
^^^
SyntaxError: Unexpected token …
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:549:28)
at Object.Module._extensions…js (module.js:586:10)
at Module.load (module.js:494:32)
at tryModuleLoad (module.js:453:12)
at Function.Module._load (module.js:445:3)
at Module.require (module.js:504:17)
at require (internal/module.js:20:19)
at Object. (/usr/lib/node_modules/wscat/node_modules/ws/index.js:3:19)