Closed emdin closed 9 years ago
Is there an idea how you (maintainers) would like it to work? I could implement that while making the switch to xhr v2.0 I'd just prefer to know your opinion before I submit a PR
This got accidentally done in xhr2-and-node branch.
var sync = require("ampersand-sync/core")(whateverXhrYouWant)
Also, if you just wanted to switch between xhr
for the browser and request
for node, that's going to happen without any setup.
Ampersand-sync can be upgraded to work on server, to do so xhr or any other transport should be pluggable. Something along the lines: