Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

subscribe_to do not subscribe to channel #23

Open
StragaSevera opened this issue Dec 19, 2015 · 1 comment
Open

subscribe_to do not subscribe to channel #23

StragaSevera opened this issue Dec 19, 2015 · 1 comment

Comments

@StragaSevera
Copy link

Hello!

I am previous private_pub user and i'm stuck.

It seems, subscribe_to in Danthes does not activate channel, and my messages do not come through Dantes.

The example about js.erb is outdated, and I do not understand how I must handle situation when I do not need callbacks, but plain JS execution...

@keyeh
Copy link

keyeh commented Mar 12, 2016

For some reason subscribe_to only signs the channel. You need to call the subscribe javascript function manually after subscribe_to

Something like this:
<%= subscribe_to "/conversations/2" %>
Afterwards, in javascript
Danthes.subscribe("/conversations/2")

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

No branches or pull requests

2 participants