long-polling


Long Polling interval in atmosphere


Long polling interval in atmosphere framework is about 60 secs. Even after setting pollingInterval attribute in AtmosphereRequest, the request is sent to server after 60 secs. How exactly to set the pollingInterval in the request?
This is the request in javascript:
request : {
url : document.location.toString() + 'echo',
transport : 'websocket',
fallbackTransport : 'long-polling',
trackMessageLength : true,
reconnect: true,
pollingInterval :10,
maxReconnectOnClose: Number.MAX_VALUE,
reconnectInterval: 10,
connectTimeout: -1
}
On the server side, in the web.xml, you could set these two init-param entries:
<init-param>
<param-name>org.atmosphere.cpr.AtmosphereInterceptor</param-name>
<param-value>org.atmosphere.interceptor.HeartbeatInterceptor</param-value>
</init-param>
<init-param>
<param-name>org.atmosphere.interceptor.HeartbeatInterceptor.heartbeatFrequencyInSeconds</param-name>
<!-- value in seconds, default 60 -->
<param-value>10</param-value>
</init-param>
For more information:http://atmosphere.github.io/atmosphere/apidocs/org/atmosphere/interceptor/HeartbeatInterceptor.html

Related Links

Koa 2 router how to make a long poll request
Confluent long polling properties in kafka-rest
How to combine async and blocking requests in VuGen?
Long polling confusion
WAS Liberty & Atmosphere long-polling 1 min delay
Long Polling interval in atmosphere
MQTT long polling over GPRS/HSDPA
JS and CSS file fails to load when the page is refreshed in grails application which uses Atmosphere Meteor plugin
Security concerns in long polling
Kafka long polling
How to build the request for a long poll url for box.com
how to access enterprise events using Java code
Handle client timeouts when serving long polling with gevent
Long polling blocking multiple windows?
Long polling on a penny auction site?
Cannot implement long polling

Categories

HOME
ms-access
java
compiler-construction
testing
debugging
mockito
reserved
syntax
gis
sqlite-net-extensions
gps
angular-ui-bootstrap
fancybox
amazon-cloudformation
quickbooks
gz
visual-studio-2005
messages
firefox-webextensions
custom-wordpress-pages
visjs
java-3d
captiveportal
shopware
tooltipster
opentype
tasklet
scorm2004
kendo-ui-grid
mpmediaquery
bytecode-manipulation
android-fingerprint-api
password-encryption
angular-resource
fault
dotnetzip
tropo
svmlight
drupal-6
nativeapplication
knockout-components
nsarray
pycaffe
messenger
infix-notation
py2app
merge-conflict-resolution
fputcsv
blackberry-10
qgraphicsview
design-by-contract
wapiti
cloudbees
pervasive-sql
jms2
django-unittest
pundit
rgeo
dukescript
0xdbe
cakephp-3.1
splash
fluid-dynamics
sniffer
composite
website-monitoring
c3
valueconverter
rtmfp
mysqltuner
ivyde
tidy
dotnetnuke-5
rabl
plasma
itmstransporter
chuck
runas
enter
assembly-loading
external-accessory
django-tagging
xdomainrequest
yui-datatable
google-friend-connect
subviews
coda-slider
web-application-design
gamma
filtered-index
brewmp
privilege
data-acquisition
signal-handling

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App