javascript - Sending messages to server with Comet long-polling -


What is the best way to send data to the server from the client?

Example code I am using

, just to post one Use XHR for

A problem is running In some browsers, you can only have 2 (or some numbers) server per concurrent XHR connection. You can work around it by creating a queue that lets you post the current waiting message when The current XHR is completed, then that post is completed, and filling back and a new row.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

jquery - SimpleModal Confirm fails to submit form -

php - Multiple Select with Explode: only returns the word "Array" -