Sha256: c496719d8c2afb9ba5fdaceda48c448bfa229c52424782e762fb637721245d71
Contents?: true
Size: 391 Bytes
Versions: 4
Compression:
Stored size: 391 Bytes
Contents
class ActivityLogChannel < ApplicationCable::Channel def subscribed stream_from "messages" end def unsubscribed # Any cleanup needed when channel is unsubscribed end # https://cableready.stimulusreflex.com/troubleshooting/#verify-actioncable def receive(data) puts data["message"] ActionCable.server.broadcast("messages", "ActionCable is connected") end end
Version data entries
4 entries across 4 versions & 1 rubygems