The callback of WAMP PubSub Client is not called

#1

Hi ,

When message is published on the topic for which a client is registered , the callback of the client is not called.

Can anyone provide me with the code example in which the client’s callback gets called when message is published on its topic

Thanks,

Akhil

0 Likes

#2

Hi ,

When message is published on the topic for which a client is registered
, the callback of the client is not called.
Can anyone provide me with the code example in which the client's
callback gets called when message is published on its topic

You want the publisher of an event also receive that event (when the publisher is alos subscribed)?

If so, set `excludeMe` to `False`. Default is `True` - that is the publisher won't received it's own event.

This knob is available in AutobahnJS and AutobahnPython ..

Please see the references

http://autobahn.ws/python/reference
http://autobahn.ws/js/reference

/Tobias

···

Am 06.10.2013 15:55, schrieb Akhil Pillai:

Thanks,
Akhil

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

#3

Forgot to mention the programming language in the earlier post.
I am using python

0 Likes

#4

Hi Tobias,
I don’t want the publisher of an event to receive that event.

I have two clients client1 registered for topic1 and client2 registered for topic2 .

When client1 publishes event on topic2 the callback of client2 is not called.

···

On Sunday, 6 October 2013 19:28:44 UTC+5:30, Tobias Oberstein wrote:

Am 06.10.2013 15:55, schrieb Akhil Pillai:

Hi ,

When message is published on the topic for which a client is registered

, the callback of the client is not called.

Can anyone provide me with the code example in which the client’s

callback gets called when message is published on its topic

You want the publisher of an event also receive that event (when the
publisher is alos subscribed)?

If so, set excludeMe to False. Default is True - that is the
publisher won’t received it’s own event.

This knob is available in AutobahnJS and AutobahnPython …

Please see the references

http://autobahn.ws/python/reference

http://autobahn.ws/js/reference

/Tobias

Thanks,

Akhil

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

#5

Hi Tobias,
I don't want the publisher of an event to receive that event.
I have two clients client1 registered for topic1 and client2 registered
for topic2 .
When client1 publishes event on topic2 the callback of client2 is not
called.

Did you register the topic for PubSub?

https://github.com/tavendo/AutobahnPython/blob/master/examples/wamp/pubsub/simple/example1/server.py#L36

If you do not register, it won't be dispatched.

If you do

self.registerForPubSub("http://", True)

it'll dispatch any topic ..

/Tobias

···

Am 07.10.2013 06:30, schrieb Akhil Pillai:

On Sunday, 6 October 2013 19:28:44 UTC+5:30, Tobias Oberstein wrote:

    Am 06.10.2013 15:55, schrieb Akhil Pillai:
     > Hi ,
     >
     > When message is published on the topic for which a client is
    registered
     > , the callback of the client is not called.
     > Can anyone provide me with the code example in which the client's
     > callback gets called when message is published on its topic

    You want the publisher of an event also receive that event (when the
    publisher is alos subscribed)?

    If so, set `excludeMe` to `False`. Default is `True` - that is the
    publisher won't received it's own event.

    This knob is available in AutobahnJS and AutobahnPython ..

    Please see the references

    http://autobahn.ws/python/reference
    <http://autobahn.ws/python/reference>
    http://autobahn.ws/js/reference

    /Tobias

     >
     > Thanks,
     > Akhil
     >
     > --
     > 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 autobah...@googlegroups.com <javascript:>.
     > For more options, visit https://groups.google.com/groups/opt_out
    <https://groups.google.com/groups/opt_out>.

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

#6

sorry, I have just seen your response on SO, but I agree with the moderators: pls provide code.

otherwise: try the example

https://github.com/tavendo/AutobahnPython/tree/master/examples/wamp/pubsub/simple/example1

This does work. If it doesn't for you, we need to look for other reasons ..

/Tobias

···

Am 07.10.2013 06:30, schrieb Akhil Pillai:

Hi Tobias,
I don't want the publisher of an event to receive that event.
I have two clients client1 registered for topic1 and client2 registered
for topic2 .
When client1 publishes event on topic2 the callback of client2 is not
called.

On Sunday, 6 October 2013 19:28:44 UTC+5:30, Tobias Oberstein wrote:

    Am 06.10.2013 15:55, schrieb Akhil Pillai:
     > Hi ,
     >
     > When message is published on the topic for which a client is
    registered
     > , the callback of the client is not called.
     > Can anyone provide me with the code example in which the client's
     > callback gets called when message is published on its topic

    You want the publisher of an event also receive that event (when the
    publisher is alos subscribed)?

    If so, set `excludeMe` to `False`. Default is `True` - that is the
    publisher won't received it's own event.

    This knob is available in AutobahnJS and AutobahnPython ..

    Please see the references

    http://autobahn.ws/python/reference
    <http://autobahn.ws/python/reference>
    http://autobahn.ws/js/reference

    /Tobias

     >
     > Thanks,
     > Akhil
     >
     > --
     > 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 autobah...@googlegroups.com <javascript:>.
     > For more options, visit https://groups.google.com/groups/opt_out
    <https://groups.google.com/groups/opt_out>.

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