-
-
Save anka/3c84acb8b69248fc56a3138eb047fe2c to your computer and use it in GitHub Desktop.
Post message to action cable channel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Your processing code goes here | |
# Collect message data | |
message_data = { ... } | |
# Post a message to the channel | |
ActionCable.server.broadcast "notification_channel_#{some_param}", data: message_data | |
# Further code goes here |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment