I'd like to know what happens to any pending Promises /(in the
Currently, with AutobahnJS, those promises will never fire. For single page apps that do all their communication via WAMP/WebSocket, the loss of connection is likely fatal, and the connection loss is signaled on the session object.
Sure, we could reject all outstanding promises automatically, but in what order? Any deterministic order will require some book keeping.
Or we could provide a list of outstanding promises in the connection lost event and an app can then do what it wants with the promises.
I'm not sure if above would be of practical value .. but I'm not dogmatic about that. If it helps, we can add s.th. (modulo expensive bookkeeping)
Along similar lines is there any mechanism to fail a Promise if an RPC
response isn't received within a certain time frame.
Now we are talking about the situation when the connection is not lost, but no RPC response is received within some time, right?
I can see 3 variants:
1. timeout/reject the promise client-side without telling the server, and should the server respond later, silently ignore the response (which might be a success or error response)
2. timeout/reject the promise client-side and actively cancel the call
3. call server with timeout communicated. timeout call execution on server-side, and return error ("call timeout")
Am 19.06.2013 23:30, schrieb Neville Franks:
2+3 will be possible with WAMPv2 .. it requires changes to the wire protocol.
1. could be done in AutobahnJS without changes to protocol or server
I am currently using Now.js in an app I'm developing and looking at
alternatives as Now.js is no longer being developed or supported and I
suspect I am having an issue with it. Autobahn looks like a good fit,
with good docs and a well thought through set of capabilities.
Thanks! Yep, WAMP (and Autobahn) is gaining traction .. we deliberately kept the core simple, and the RPC+PubSub has proven to be quite capable.
Now that we've gained real-world, practical experience, a couple of areas will get even more powerful with WAMPv2.
You received this message because you are subscribed to the Google
Groups "Autobahn" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to autobahnws+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.