socket.io icon indicating copy to clipboard operation
socket.io copied to clipboard

Event for when client does xhr-polling (or noop)

Open shubik opened this issue 13 years ago • 1 comments

Is there a way in SocketIO to know when client does xhr polling with <8:0:> type of message (noop)? Thing is, in our use case hardware devices use SocketIO to connect to a server and each time they do polling, we know they are still online. Please help.

shubik avatar May 17 '13 16:05 shubik

Looks like this is happening in Transport.prototype.handleRequest. How can I emit an event to corresponding socket? I tried adding this.req.socket.emit('request'); but socket.on('request', ...) does not do anything.

shubik avatar May 17 '13 19:05 shubik