i have a question and may need some help configuring faye correctly.
right now a ruby server manages publishing data to a channel.
on the browser side i have the code down below.
i notice in firebug that faye seems to be continually pinging the
server with the shorthened versio reading something like:
GET faye?message
and in the info message on the bottom of the browser "waiting for ...
(our web site)"
i am surprised to see this as i was thinking that there would just be
a channel continuously open.
is there a configuration set up on the browser side so that what
appears as pinging stops and just a channel is opened?
init: function(bayeux) {
var self = this;
this._bayeux = new Faye.Client('http://' +
window.location.hostname + ':9292/faye');
this._bayeux.subscribe('/receive/account/<%=
current_account.id
%>', this.accept, this);
//this._bayeux.subscribe('/receive/user/<%=
current_user.id %>',
this.accept, this);
},
/**
* Handler for messages received over subscribed channels. Takes the
* message object sent by the post() method and sends it to
* send_to_msg_handler
*/
accept: function(message) {
var sar = Ext.util.JSON.decode(message);
// alert(sar)
this.send_to_msg_handler(sar)
},