I am new in programming language. I was trying to create an websocket connection, this is my all line of js
var url="ws://localhost:8080/WebsocketTests/";
w= new webSocket(url);
and i got this error:
**C:\xampp\htdocs\WebsocketTests>node test1.js
C:\xampp\htdocs\WebsocketTests\test1.js:3
w= new webSocket(url);
^
ReferenceError: webSocket is not defined
at Object.<anonymous> (C:\xampp\htdocs\WebsocketTests\test1.js:3:8)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:501:10)
at startup (node.js:129:16)
at node.js:814:3**
Please someone can tell me how can i create or make websocket connection easy and with some example.