instance method subscribe_to_internal_channel

Ruby on Rails 6.1.7.10

Since v5.2.8.1 Private

Available in: v5.2.8.1 v6.0.6 v6.1.7.10 v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

subscribe_to_internal_channel()

No documentation comment.

Source
# File actioncable/lib/action_cable/connection/internal_channel.rb, line 14
        def subscribe_to_internal_channel
          if connection_identifier.present?
            callback = -> (message) { process_internal_message decode(message) }
            @_internal_subscriptions ||= []
            @_internal_subscriptions << [ internal_channel, callback ]

            server.event_loop.post { pubsub.subscribe(internal_channel, callback) }
            logger.info "Registered connection (#{connection_identifier})"
          end
        end

Defined in actioncable/lib/action_cable/connection/internal_channel.rb line 14 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionCable::Connection::InternalChannel

Type at least 2 characters to search.

↑↓ navigate · open · esc close