Sha256: fc723f1e36ffc4504dbb254ce80c296a3e539be4fd6674360cd83004f2baf390
Contents?: true
Size: 739 Bytes
Versions: 23
Compression:
Stored size: 739 Bytes
Contents
# frozen_string_literal: true # :markup: markdown 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
23 entries across 23 versions & 2 rubygems