Sha256: 4ef099fb355e63c89369218e55399f16d972a0507b845dc23d8375e8713f32b6
Contents?: true
Size: 534 Bytes
Versions: 6
Compression:
Stored size: 534 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
6 entries across 6 versions & 1 rubygems