I found solution to my problem, here is what I followed Step 1) I was using wrong url to connect to faye, remove the endpoint from client var client = new Faye.Client('http://chat-yummyfoods.rhcloud.com:8000/faye',{ timeout: 20 }); Step 2) Get the websocket of your app and disable it for faye client var...
You can use CometD 2.9.1 on Android. The protocol has not changed between CometD 2 and CometD 3, and you will have Android compatibility.
The behaviour you are experiencing is exactly what a Bayeux server should do. The server does not "hang"; it holds the request in a long-polling fashion. I don't know much Faye but the CometD project, which defined the Bayeux protocol specification, implements a server in the same way, where the...
websocket,phantomjs,faye,bayeux
Just a simple answer: PhantomJS 1.x does not, but PhantomJS 2 does support websockets. Modernizr output for PhantomJS 2.0.0: ...