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 Socket = new WebSocket('ws://chat-yummyfoods.rhcloud.com:8000' );
client.disable(Socket);
thats it :)