Hi there!! I am developing a webapp using socket.io API.

Let's suppose this sentence in the client side:

Code:
socket=io.connect(myserver);


socket.emit("myevent",mydata); //error handling?
How can I know if "mydata" reached the server? Maybe the server is down.....

Thank you very much!