Websocket testing using wscat

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

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)

What exactly are you trying to execute? The websocket library you’ve tried to execute is a library, and isn’t meant for direct use on the console.

I was following the steps in the URL provided for ARI. Objective is to see if i can get data into this websocket.


The wiki page does not mention running things as you did, so what did you run and what was output?

My message is very clear not sure what additional information you are looking for.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.