Skip to content

There's XmlHttpRequest() and jQuery.ajax() too #11

@vphantom

Description

@vphantom

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions