module NotificationGateway::ActionCableGateway

Public Class Methods

publish(channel:, message: ActionCable.server.broadcast channel, message) click to toggle source
# File lib/notification_gateway/action_cable_gateway.rb, line 3
def self.publish channel:, message:
  ActionCable.server.broadcast channel, message
end