mardi 24 février 2015

How can a client know if the emit failed? Is there any callback for socket.emit()?

If the client emit some msg to the server, is there any way for client to know if this emit is failed or not ?


I think it my be some callback like :



socket.emit("test",dataToSend,function(err){ });

Aucun commentaire:

Enregistrer un commentaire