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