No, but before calling any method in the channel after subscription, I want to use before_action/before_filter but its not working in the channel.rb file. Is there any action in the actioncable?
- faisal bhatti
What, exactly, are you trying to achieve with this?
- Undo
1 Answers
0
votes
Here I find out the solution:
After subscription, use "after_subscribe" to call another method.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more
on_subscribeandon_unsubscribe? - sjagr