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
Post a Comment