node.js - nodejs + socket.io + azure. continuous polling issue -


i facing problem socket getting keep polled continuously without gap. not sure whats happening.

if same code placed in digital ocean cloud, it's not happening.

little background:

i'm running azure vm behind load balancers.

enter image description here

if created load balancer using application request routing iis, you'd need disable websocket when using socket.io on node.js.

if using websocket support in socket.io on node.js in site, need disable default iis websockets module adding below snippet web.config or applicationhost.config. if not done, iis websockets module attempt handle websocket communication rather letting task fall through node.js (and hence application). result in unexpected errors when attempt access site.

<system.webserver>     ...     <websocket enabled="false"/> </system.webserver> 

Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -