Skip to content
This repository has been archived by the owner on Oct 10, 2018. It is now read-only.

Question - Support xhr-polling? #28

Open
mbilbille opened this issue May 10, 2014 · 4 comments
Open

Question - Support xhr-polling? #28

mbilbille opened this issue May 10, 2014 · 4 comments

Comments

@mbilbille
Copy link
Contributor

It is not the purpose of this benchmark tool but did you ever try to make it work with other transports like xhr-polling?

@nchaulet
Copy link
Contributor

websocket-bench support other transports only for primus.io ans faye, do not hesitate to contact me question if you have any question.

@mbilbille
Copy link
Contributor Author

And so, is it your plan to support others transports for socket.io as well?
I quickly tried to alter socketioworker.js on my own, to force the connection in xhr-polling but I got weird results ; it stop connecting after few connections.

Same kind of problem mentioned here: http://blog.mixu.net/2011/11/22/performance-benchmarking-socket-io-0-8-7-0-7-11-and-0-6-17-and-nodes-native-tcp/
3) A polling transport that works on Node.js

@nchaulet
Copy link
Contributor

It could be interesting to add transports option compatible with socket.io. It seems there are strange issues with socket.io and this tools.
I am going to search a good solution for this.

@mbilbille
Copy link
Contributor Author

Here is the hack to support xhr-polling with Socket.io. Hope this help :)

https://gist.github.com/jmyrland/4639758

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants