How to check that message sent with socket.io library has been received to the client. Is there special method for it in socket.io?
Thanks for you
When you add a function as the last parameter of .send() or .emit() method calls, this function is called when the other party receives the message.
.send()
.emit()
socket.send('hi', function() { // if we are here, our salutation has been received by the other party. });