socket.io - XHR polling vs flashsocket and websocket -



socket.io - XHR polling vs flashsocket and websocket -

i utilize node.js , socket.io. have problem connection speed socket.io. in net explorer , opera have problem connection speed. - when utilize flashsocket or websocket. when utilize mode of transport-polling xhr connection fast - in browsers (ie, ff, chrome, opera).

what difference between mode of transport - xhr-polling , flash / websocket? best mode of transportation? how optimize connection speed socket.io?

thanks advice!

i'd surprised if general speed of connection on time different between web browsers, reason you'll see delay in initial connection in net explorer , in opera native websocket back upwards not available it's been disabled default. so, if take flashsocket additional flash object (swf file) need downloaded before connection established.

websockets beingness introduced in ie10 , in opera available, disabled default.

what difference between mode of transport - xhr-polling , flash / websocket?

xhr-polling - see http://en.wikipedia.org/wiki/push_technology#long_polling flashsocket connection - uses flash socket object found connection websocket server , communicates using websocket protocol. means there interaction between flash , javascript , means additional flash object (swf files) need downloaded.

what best mode of transportation?

websockets web browser natively supports (chrome, firefox, safari). if flash object (swf file) in browser cache connection should fast. if it's not there delay. xhr long-polling solution , work cross browser there negatives:

between poll requests info on display out of date (stale). it's less efficient connection method single tcp connection used websockets since http long-polling uses multiple connection simulate bi-directional functionality http has overhead means additional header info sent upon request , each subsequent request.

how optimize connection speed socket.io?

(i'm pretty new socket.io suggestion)

i'd @ configuring socket.io docs , see if can conditionally set transports based on browser connecting. based on experiences be:

chrome, firefox, safari - websockets ie, opera - xhr-polling

websocket socket.io

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -