Sha256: 1a33db428381fb0d6befe8522fd682b5a90d41438f273c1e258f7e94451a3536
Contents?: true
Size: 718 Bytes
Versions: 162
Compression:
Stored size: 718 Bytes
Contents
# frozen_string_literal: true module ActionCable module SubscriptionAdapter module ChannelPrefix # :nodoc: def broadcast(channel, payload) channel = channel_with_prefix(channel) super end def subscribe(channel, callback, success_callback = nil) channel = channel_with_prefix(channel) super end def unsubscribe(channel, callback) channel = channel_with_prefix(channel) super end private # Returns the channel name, including channel_prefix specified in cable.yml def channel_with_prefix(channel) [@server.config.cable[:channel_prefix], channel].compact.join(":") end end end end
Version data entries
162 entries across 157 versions & 12 rubygems