Create a gist now

Instantly share code, notes, and snippets.

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