javascript - socket.io custom emit event not working -


i used npm install socket.io. server running fine not capturing custom emitted events client.

the documentation on socket.io not date, example socket.io-node package not exist in npm repo git page says.

so i'm wondering if functionality gone in base socket.io install or if doing wrong.

my code follows:

server:

client.on('checkin', function (name) { ... }); 

client:

socket.emit('checkin',name); 

is there more need doing?

socket.io 0.7 released today (see this link), , events used @penguinbroker in it's example code working now.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -