instance method
handle_open
Ruby on Rails edge
Since v5.0.7.2Signature
handle_open()
No documentation comment.
Source
# File actioncable/lib/action_cable/connection/base.rb, line 91
def handle_open
connect
subscribe_to_internal_channel
send_welcome_message
rescue ActionCable::Connection::Authorization::UnauthorizedError
close(reason: ActionCable::INTERNAL[:disconnect_reasons][:unauthorized], reconnect: false)
end
Defined in actioncable/lib/action_cable/connection/base.rb line 91
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionCable::Connection::Base