I can't seem to find any configuration variable etc. for the polling interval that cometd uses for the subscription channels.
As it polls every second or so, I am hitting the max events per 24h very quickly.
Is there any way to decrease the polling interval so that I can save on the number of events?
Also is there anything that I'm missing here:
$.cometd.init(
{
url: window.location.protocol+'//'+window.location.hostname+'/cometd/24.0/',
requestHeaders: { Authorization: 'OAuth {!$Api.Session_ID}'}
});
// Subscribe to a topic. JSON-encoded update will be returned in the callback
$.cometd.subscribe('/topic/Channel', function(message)
{
// do stuff here
}
?