Skip to content

Instantly share code, notes, and snippets.

Created August 19, 2017 13:06
What would you like to do?
Post message to action cable channel
# 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