Wildcard subscription trouble

#1

Hi all!
I have trouble with wildcard subscription. When I try to make subscription handler on ‘com.myapp....on_concert’ I get error “subscribe for invalid topic URI ‘com.myapp....on_concert’”. What I’m doing wrong? Tried to use decorators or ‘subscribe’ method calling - no changes. Need help very much. Autobahn upgraded to 0.8.9.

0 Likes

#2

Hello Ilya,

"wildcard subscription" is part of the "Advanced Profile" of WAMP.

This means it is an optional feature that only specific WAMP routers will implemenent.

The basic router included with AutobahnPython does not and will not support it. The feature will be implemented in Crossbar (and potentially other routers, if implementors chose to do so).

As of today, it's not yet there:

https://github.com/tavendo/WAMP/issues/71
https://github.com/crossbario/crossbar/issues/75

Sorry for the unpleasant news .. we need help to fill the gaps (faster) ..

/Tobias

···

Am 19.06.2014 09:37, schrieb Ilya Travkin:

Hi all!
I have trouble with wildcard subscription. When I try to make
subscription handler on 'com.myapp.<country>.<state>.<city>.on_concert'
I get error "subscribe for invalid topic URI
'com.myapp.<country>.<state>.<city>.on_concert'". What I'm doing wrong?
Tried to use decorators or 'subscribe' method calling - no changes. Need
help very much. Autobahn upgraded to 0.8.9.

--
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/d/optout.

0 Likes

#3

So subscription topic string must exactly the same that published topic to handler fired? No other ways?

···

четверг, 19 июня 2014 г., 13:05:41 UTC+4 пользователь Tobias Oberstein написал:

Hello Ilya,

“wildcard subscription” is part of the “Advanced Profile” of WAMP.

This means it is an optional feature that only specific WAMP routers
will implemenent.

The basic router included with AutobahnPython does not and will not
support it. The feature will be implemented in Crossbar (and potentially
other routers, if implementors chose to do so).

As of today, it’s not yet there:

https://github.com/tavendo/WAMP/issues/71

https://github.com/crossbario/crossbar/issues/75

Sorry for the unpleasant news … we need help to fill the gaps (faster) …

/Tobias

Am 19.06.2014 09:37, schrieb Ilya Travkin:

Hi all!

I have trouble with wildcard subscription. When I try to make

subscription handler on ‘com.myapp....on_concert’

I get error "subscribe for invalid topic URI

‘com.myapp....on_concert’". What I’m doing wrong?

Tried to use decorators or ‘subscribe’ method calling - no changes. Need

help very much. Autobahn upgraded to 0.8.9.

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+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

0 Likes

#4

Currently, yes.

···

Am 19.06.2014 12:46, schrieb Ilya Travkin:

So subscription topic string must exactly the same that
published topic to handler fired? No other ways?

0 Likes

#5

Does that mean that there is no prefix subscription either? In v1 there used to be a notion of a ‘prefix’ with a subscription. I saw in the autobahn git there is a prefixsubscription branch. Experimental? Is prefix subscription an Advanced feature?

-g

···

On Thursday, June 19, 2014 6:09:04 AM UTC-5, Tobias Oberstein wrote:

Am 19.06.2014 12:46, schrieb Ilya Travkin:

So subscription topic string must exactly the same that

published topic to handler fired? No other ways?

Currently, yes.

0 Likes

#6

Hi Greg,

Does that mean that there is no prefix subscription either? In v1 there
used to be a notion of a 'prefix' with a subscription. I saw in the
autobahn git there is a prefixsubscription branch. Experimental? Is

Yep, the branch still exists (it was never finished) since I reuse/transfer some of the code to the new WAMP v2 code.

But: there never was any kind of wildcard or prefix-based subscription with WAMPv1.

Please note that the PREFIX message of WAMP v1:

http://wamp.ws/spec/wamp1/#prefix_message

was _not_ about pattern-based subscriptions, but only to establish "abbreviations" of URI prefixes over the wire.

For WAMP v2, we killed this altogether. It's now a client library feature.

E.g. in AutobahnJS, when you do:

session.prefix('api', 'com.myapp.service');

you can then call

session.call('api:add2').then(...);

which under the hood (inside AutobahnJS) will be resolved to full URIs _before_ the WAMP call messages leaves the client.

http://autobahn.ws/js/reference.html#uri-shortcuts

prefix subscription an Advanced feature?

Yes, prefix-based subscriptions as well as wildcard-based subscriptions (collectively called: pattern-based subscriptions) are part of the Advacned Profile.

···

Am 20.06.2014 15:12, schrieb Greg Fausak:

-g

On Thursday, June 19, 2014 6:09:04 AM UTC-5, Tobias Oberstein wrote:

    Am 19.06.2014 12:46, schrieb Ilya Travkin:
     > So subscription topic string must exactly the same that
     > published topic to handler fired? No other ways?

    Currently, yes.

--
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/d/optout.

0 Likes

#7

thanks for the follow up.

-g

···

On Friday, June 20, 2014 8:49:27 AM UTC-5, Tobias Oberstein wrote:

Hi Greg,

Am 20.06.2014 15:12, schrieb Greg Fausak:

Does that mean that there is no prefix subscription either? In v1 there

used to be a notion of a ‘prefix’ with a subscription. I saw in the

autobahn git there is a prefixsubscription branch. Experimental? Is

Yep, the branch still exists (it was never finished) since I
reuse/transfer some of the code to the new WAMP v2 code.

But: there never was any kind of wildcard or prefix-based subscription
with WAMPv1.

Please note that the PREFIX message of WAMP v1:

http://wamp.ws/spec/wamp1/#prefix_message

was not about pattern-based subscriptions, but only to establish
“abbreviations” of URI prefixes over the wire.

For WAMP v2, we killed this altogether. It’s now a client library feature.

E.g. in AutobahnJS, when you do:

session.prefix(‘api’, ‘com.myapp.service’);

you can then call

session.call(‘api:add2’).then(…);

which under the hood (inside AutobahnJS) will be resolved to full URIs
before the WAMP call messages leaves the client.

http://autobahn.ws/js/reference.html#uri-shortcuts

prefix subscription an Advanced feature?

Yes, prefix-based subscriptions as well as wildcard-based subscriptions
(collectively called: pattern-based subscriptions) are part of the
Advacned Profile.

-g

On Thursday, June 19, 2014 6:09:04 AM UTC-5, Tobias Oberstein wrote:

Am 19.06.2014 12:46, schrieb Ilya Travkin:
 > So subscription topic string must exactly the same that
 > published topic to handler fired? No other ways?
Currently, yes.

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+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

0 Likes