This is nice for [Long]WebSocket, but there should be a clear example for batched client-side operation as well, say with jQuery.ajax() for example. This would help the upgrade process for projects which used the batched version prior to this streaming rewrite.
-and/or-
Relying on jQuery for this otherwise stand-alone module in polling mode seems excessive. If users have jQuery available good, but XmlHttpRequest() isn't much of a hassle to use directly. We should also make an example for it.
We could even make our own AJAX module for the purpose of being interchangeable with LongWebSocket as the I/O layer under us if the example becomes too complex. This would be strictly for a request-response scenario, given that for long-poll purposes we now enjoy widespread browser support for WebSocket.
This is nice for [Long]WebSocket, but there should be a clear example for batched client-side operation as well, say with
jQuery.ajax()for example. This would help the upgrade process for projects which used the batched version prior to this streaming rewrite.-and/or-
Relying on jQuery for this otherwise stand-alone module in polling mode seems excessive. If users have jQuery available good, but
XmlHttpRequest()isn't much of a hassle to use directly. We should also make an example for it.We could even make our own AJAX module for the purpose of being interchangeable with LongWebSocket as the I/O layer under us if the example becomes too complex. This would be strictly for a request-response scenario, given that for long-poll purposes we now enjoy widespread browser support for WebSocket.