Skip to content

Instantly share code, notes, and snippets.

@anka anka/some_background_job.rb Secret
Created Aug 19, 2017

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
You can’t perform that action at this time.