Method: ActivityLogChannel#receive

Defined in:
app/channels/activity_log_channel.rb

#receive(data) ⇒ Object



10
11
12
# File 'app/channels/activity_log_channel.rb', line 10

def receive(data)
  ActionCable.server.broadcast("messages", {message: "ActionCable is connected and received: #{data["message"]}", topic: data["topic"].presence || "general"}) if data["namespace"] == "subscriptions"
end