0

I'm using socket.io 1.1 to access a server behind Amazon elastic load balancer. Because elb doesn't support websocket, polling is the chosen transport.

How do I change the polling frequency to increase the polling interval?

Thanks!

lastoneisbearfood
  • 3,955
  • 5
  • 26
  • 25
  • related? http://stackoverflow.com/questions/11129391/socket-io-connection-event-fired-on-every-client-heartbeat – laggingreflex Oct 18 '14 at 04:33
  • On the surface, yes. But socket.io did a major overhaul since version 1.0 and they did away with those get/set methods that can be used to change polling frequency. I need a v1.x solution. – lastoneisbearfood Oct 18 '14 at 08:30
  • `io.set('transports'), io.set('heartbeat interval'), io.set('heartbeat timeout', and io.set('resource') are still supported for backwards compatibility.` [Source](http://socket.io/docs/migrating-from-0-9/#configuration-differences) – DerM Oct 21 '14 at 08:28

0 Answers0