-
Notifications
You must be signed in to change notification settings - Fork 79
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
How to use action cable to broadcast notification JSON instead of HTML #111
Comments
Hi, thank you for your question and feedback. If you are expecting |
I added this file under config/initializers/activity_notification_ext.rb and put this code in this file, works perfectly fine for me! i will broadcast JSON instead of html whenever action cable is called for notification!
|
Thank you for your feedback! |
I went easy way and implemented broadcasting as optional target before version 2.0
|
Hi @irondnb, |
Released as v2.1.0. Thanks! |
i am integrating this gem in rails as API and facing alot of over rides!
need help to over ride the action cable method to broadcast JSON
right now its posting HTML
The text was updated successfully, but these errors were encountered: