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
pandas
keras
heroku
comparison
relative-path
raspberry-pi
android-4.4-kitkat
framework7
getelementsbytagname
programming-languages
rubygems
autotools
primary-key
adobe-analytics
reveal.js
midi
dax
quickbooks
correlation
usergrid
percona
transformation
database-replication
nhibernate-envers
google-cloud-speech
lucene.net
dbext
immutable.js
autosys
p-value
buildbot
qhull
fish
saas
wtx
quote
microsoft-chart-controls
binary-data
pdb
caret
mapbox-gl
stacked
espeak
neuroscience
android-browser
theano.scan
hilbert-curve
preconditions
ensembles
galen
http-live-streaming
glew
vao
thin
scorm
qwt
osx-mavericks
youcompleteme
atomicity
idisposable
aurelia-validation
np-complete
sybase-asa
python-cryptography
cudafy.net
django-scheduler
xcb
firmata
paypal-express
websitepanel
ubuntu-10.04
nessus
ipconfig
ptrace
independentsoft
intellij-14
ruby-2.2
microbenchmark
graph-drawing
python-green
socketexception
has-many-through
starcluster
aapt
navigationservice
jquery-layout
reactfx
resty-gwt
openlaszlo
gridfs
bulkloader
orchardcms-1.7
selected
itmstransporter
anonymous-methods
simba
word-processor
qtkit
nsmanagedobject
nsdatecomponents
zpt
oncheckedchanged
dbal
text-coloring
ubuntu-9.04
rtml
caching-application-block

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