Pub works, but can't make sub work

#1

Hello,

I tried to make a simple demo to try out autobahn.

Here is the HTML + JS:

http://0bin.net/paste/KlQFtcnqtV-WNZWd#pi2gzmgWtSiOO6vCtq6Xtrhe8C+l339ENeuWrhZkTGk=

Here is the python server code:

http://0bin.net/paste/fIPrnVv+mz4AcU6a#OLFhrnulb86GWPZvOerRaRuHFfsr5T1afkymyva46NE=

Now the server runs fine, the client connects, and the server does receive the “Bam” event. However the client doesn’t not seem to receive it back (not ‘get bam’ in the console log).

Did I do anything wrong ?

By the way: which WAMP version is this code using ?

0 Likes

#2

Hello,

I tried to make a simple demo to try out autobahn.

Here is the HTML + JS:

http://0bin.net/paste/KlQFtcnqtV-WNZWd#pi2gzmgWtSiOO6vCtq6Xtrhe8C+l339ENeuWrhZkTGk=

Here is the python server code:

http://0bin.net/paste/fIPrnVv+mz4AcU6a#OLFhrnulb86GWPZvOerRaRuHFfsr5T1afkymyva46NE=

Now the server runs fine, the client connects, and the server does
receive the "Bam" event. However the client doesn't not seem to receive
it back (not 'get bam' in the console log).

Did I do anything wrong ?

The publisher of an event itself will by default not receive the published event, even if he is also subscribed.

This can be modified using the "excludeMe" option during publishing.

Or: just do the test with 2 and 3 open tabs and publishing from the different tabs.

By the way: which WAMP version is this code using ?

This is WAMP v1 code.

···

Am 05.03.2014 18:57, schrieb websam max:

--
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
<mailto:autobahnws+...@googlegroups.com>.
For more options, visit https://groups.google.com/groups/opt_out.

0 Likes