instance method
subscribe_to_internal_channel
Ruby on Rails 8.1.2
Since v5.2.8.1 PrivateSignature
subscribe_to_internal_channel()
No documentation comment.
Source
# File actioncable/lib/action_cable/connection/internal_channel.rb, line 19
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 19
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionCable::Connection::InternalChannel