Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

PrivatePub.subscribe wildcard subscription #113

Open
aparreno opened this issue Apr 1, 2015 · 0 comments
Open

PrivatePub.subscribe wildcard subscription #113

aparreno opened this issue Apr 1, 2015 · 0 comments

Comments

@aparreno
Copy link

aparreno commented Apr 1, 2015

is this possible?

<%= subscribe_to "/#{current_user.company.id}/orders/#{current_user.entity.id}/*" %>

PrivatePub.subscribe('<%= "/#{current_user.company.id}/orders/#{current_user.entity.id}/*" %>', function (data, channel) {
// TO DO
});

when I use PrivatePub.subscribe with wildcards it doesn't work, I need to specify one single channel.
PrivatePub.subscribe('<%= "/#{current_user.company.id}/orders/#{current_user.entity.id}/client_id" %>', function (data, channel) {
// TO DO
});
How can I handle javascript using wildcards?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant