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" );   
Comments
Post a Comment