javascript - WebSockets, Comet, AJAX & Long Polling -


my understanding of comet server-side ajax request. understanding of long polling ("push") is server-side ajax request. understanding of websockets two-way ajax request.

if of these wrong, please begin correcting me!

assuming i'm more or less correct, true these ajax (javascript using xmlhttprequest object under hood)? if not ajax calls, how implement them in client (via javascript) , on server (using java)? in advance!

your understanding of websockets incorrect. websockets new protocol , provides new api has nothing xmlhttprequest.

this how create websocket

var examplesocket = new websocket( "ws://www.example.com/socketserver", "protocolone" ); 

see https://developer.mozilla.org/en/websockets/


Comments

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -