I can send and receive messages from server on websockets. I need to write a function that will send data to the server and is awaiting a response from the server and then r
I think the project WebSockets-Callback would be easier to use
wscb.send({cmd: 'Hello server!'}, function(response){ //do something... } )