socket.io
socket.io copied to clipboard
Event for when client does xhr-polling (or noop)
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.
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.