javascript - Polling interval for xhr for socket.io 1.0 -


how set polling interval xhr fallback socket.io 1.0? looks polls every second when not in websocket mode i'd prefer if polling interval every 2 seconds reduce load on server.

i read through documentation both socket.io , engine.io options object couldn't find in there set polling interval.

io.set("polling duration", 2); 

although "set" gone. think have in server initialization

var socket = require('socket.io')({     "polling duration": 2 }); 

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -