lundi 2 février 2015

How to connect room in socket.io


I'm fallowing socket.io documentation for create a chat with Room system, but when I execute fallowing code in client side, it returning "undefined"



io.to('some room').emit('some event'); // this will returning "undefined"


Because io not has function to()


Where is problem?





Aucun commentaire:

Enregistrer un commentaire