Flowdock
method

subscribe_to_internal_channel

Importance_0
v5.2.3 - Show latest stable - 0 notes - Class: InternalChannel
subscribe_to_internal_channel() private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide 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
Register or log in to add new notes.