autobahn-java icon indicating copy to clipboard operation
autobahn-java copied to clipboard

Implement progressive calls

Open om26er opened this issue 8 years ago • 3 comments

If I have a procedure that returns a video, a photo or an mp3, a pdf or whatever. It would be cool to support java.io.File as a return type for Session.call().

For basic functionality the public API will basically be unchanged, no new overloading required. Unless we want to support some complex scenarios.

om26er avatar Jul 20 '17 14:07 om26er

I don't get this one. How would you fill this virtual java.io.File thing? I mean, eg from a Blob returned from a WAMP remote procedure call? If so, the WAMP procedure being called really should use progressive call results and progressively return chunks of bytes. And that should be fed into the file thing without rebuffering ideally.

oberstet avatar Aug 03 '17 21:08 oberstet

You might then as well go as far as asking for the same thing but uplink;) That is, upload a big file from a virtual file thing to a remote WAMP procedure in a call argument. Yeah. Thing is, that is missing at the WAMP spec level still. Runs under the name "progressive calls". To differentiate from "progressive results".

oberstet avatar Aug 03 '17 21:08 oberstet

So, this should probably be renamed to "Support progressive calls".

om26er avatar Sep 02 '17 21:09 om26er