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
compiler-construction
twitter
testing
ionic-framework
pdf
variables
jdo
proxy
minimum-spanning-tree
plone
plot
adb
cvs
maven-3
leon
sqlite3
callback
mvvmcross
fancybox
ios-charts
gorm
vifm
metatrader4
ssl-client-authentication
spring-xd
remote-access
orchardcms
lldb
opencover
sox
devops
lcd
p-value
chromebook
greendao
catel
column-family
catch-all
perlin-noise
sharefile
uft-api
impersonation
azure-ml
apple-news
flickr-api
youcompleteme
filepicker
strptime
jedis
jquery-nestable
gabor-filter
nstextview
nodebb
android-cursor
flutterwave
spring-mongodb
titanium-android
medium.com
heidisql
removechild
log4c
url-masking
dstu2-fhir
file-writing
ctest
pagedlist
fadeout
yaws
wapiti
freedesktop.org
spim
r-tree
prerequisites
coveralls
cakephp-3.1
event-bubbling
appfabric-cache
graph-drawing
mmc
dundas
oxwall
jscript.net
nsbutton
document-classification
flask-cors
has-many-through
android-radiobutton
htmlcleaner
dealloc
oracle-warehouse-builder
message-driven-bean
prettify
ivyde
runtime.exec
spring-validator
gdata-api
jspinclude
getmessage
zpt
appendto
mongomapper
floating
w3wp.exe
noscript
nerddinner
ajax-forms

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App