Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
shubik opened this issue May 17, 2013 · 1 comment
Closed

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

shubik opened this issue May 17, 2013 · 1 comment

Comments

@shubik
Copy link

shubik commented May 17, 2013

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
Copy link
Author

shubik commented May 17, 2013

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.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant