Sha256: c967fdafda74d5f384a3e6a48dfd251aad12cc198208847db4707200d5b80e26
Contents?: true
Size: 687 Bytes
Versions: 20
Compression:
Stored size: 687 Bytes
Contents
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
20 entries across 20 versions & 1 rubygems