varhttp=require('http').createServer()varServer=require('node-websocket')(http)Server.on('connection',function(socket){socket.on('data',function(msg){socket.sendOthers('hello and there is a message from '+socket.id+': '+msg.PayloadData)})})http.listen(8080)