Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to do a streaming RPC call using WAMP?

I would like to use the WAMP protocol for RPC and Pub/Sub using websockets. In particular, I am interested in using crossbar.io as a WAMP server.

I read through the spec for WAMP and it was not clear whether it's possible to stream data as part of an RPC call from the client. There seems to be support for streaming a result from the server though.

edit: I want to clarify that I am referring to what one might call a progressive request as opposed to simply a server acting as a client.

like image 247
jedesah Avatar asked Nov 18 '25 21:11

jedesah


2 Answers

Today (2015/05), WAMP has progressive results, but not progressive requests.

Development of WAMP was (well, still is) driven by use cases. We had a use case for progressive results, but not progressive requests. Also, it's not fully immediate how progressive requests should work.

like image 143
oberstet Avatar answered Nov 21 '25 17:11

oberstet


Server and client are equals in WAMP. A client in the classical sense (e.g. a browser) can offer a procedure for the server in the classical sense to call, and this can use progressive call results.

like image 30
gzost Avatar answered Nov 21 '25 17:11

gzost



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!