I am testing the way web sockets work in Javascript, tried the code this way:
(function(){
socket = new Websocket('ws://achex.ca:4010');
socket.onopen = function(){
console.log("Connection is now open")
}
})
Nothing appears in console log...what am I doing wrong?