Sha256: 71d188c438e30c0915438316d4580160d13a44c41033ff5fd3dd0d4758cca105
Contents?: true
Size: 539 Bytes
Versions: 29
Compression:
Stored size: 539 Bytes
Contents
# frozen_string_literal: true require "anycable-rails" module ActionCable module SubscriptionAdapter # AnyCable subscription adapter delegates broadcasts # to AnyCable class AnyCable < Base def initialize(*) end def broadcast(channel, payload) ::AnyCable.broadcast(channel, payload) end def shutdown # nothing to do # we only need this method for development, # 'cause code reloading triggers `server.restart` -> `pubsub.shutdown` end end end end
Version data entries
29 entries across 29 versions & 1 rubygems