Calling RPC methods on the client?

#1

Hi everyone and big thanks to guys developing Autobahn!

I’m working with a Python WAMP server and Javascript client, and my
requirements changed a bit so I need to call RPC methods on the client too.
Currently, when the clients wants something done, it calls an RPC method on
the server, and when the server wants something done, it publishes on a
PubSub topic. Is there a better way?
Can a Javascript client somehow expose RPC interface?

Thanks!

0 Likes

#2

Hi Karlo,

It seems you are also looking for something with bi-directional RPC :slight_smile:

See my post a few minutes ago:

https://groups.google.com/forum/?fromgroups=#!topic/autobahnws/eWmMW0sxNyQ

Christophe

0 Likes

#3

Hi Karlo,

It seems you are also looking for something with bi-directional RPC :slight_smile:

See my post a few minutes ago:

https://groups.google.com/forum/?fromgroups=#!topic/autobahnws/eWmMW0sxNyQ

Heh, it would seem so! :slight_smile:

Are both of your nodes written in the same language, Python maybe? Or are you mixing Python and Javascript?

0 Likes

#4

We are designing a protocol. That means nodes may use any language.
That said, one party is an embedded device and most manufacturers are
using C on that side. The other party is typically running on
full-featured servers and software may be written in Java, in Python,
etc.

Christophe

···

On Fri, Jan 18, 2013 at 10:32 PM, Karlo L. <kloz...@gmail.com> wrote:

Are both of your nodes written in the same language, Python maybe? Or are
you mixing Python and Javascript?

0 Likes

#5

Symmetric RPC will be available with WAMPv2 .. in general, pls see here

https://github.com/tavendo/wamp/issues?direction=desc&sort=created&state=open

for (potential) features upcoming for WAMPv2 ..

···

Am 18.01.2013 22:28, schrieb Christophe Giaume:

Hi Karlo,

It seems you are also looking for something with bi-directional RPC :slight_smile:

See my post a few minutes ago:
https://groups.google.com/forum/?fromgroups=#!topic/autobahnws/eWmMW0sxNyQ

Christophe

0 Likes

#6

Symmetric RPC will be available with WAMPv2 … in general, pls see here

https://github.com/tavendo/wamp/issues?direction=desc&sort=created&state=open

for (potential) features upcoming for WAMPv2 …

Sorry to revive an old thread, but I’ve been using RPC + PubSub as a poor man’s symmetric RPC, and it has worked out quite well.

Do you have an ETA on the WAMP v2?

0 Likes

#7

    Symmetric RPC will be available with WAMPv2 .. in general, pls see here

    https://github.com/tavendo/wamp/issues?direction=desc&sort=created&state=open
    <https://github.com/tavendo/wamp/issues?direction=desc&sort=created&state=open>

    for (potential) features upcoming for WAMPv2 ..

Sorry to revive an old thread, but I've been using RPC + PubSub as a
poor man's symmetric RPC, and it has worked out quite well.

Do you have an ETA on the WAMP v2?

Albert has done some work on symmetric RPC:

https://github.com/tavendo/AutobahnPython/tree/symmetric_rpc

···

Am 06.02.2013 00:57, schrieb Karlo L.:

--
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.

0 Likes