instance method
handle_open
Ruby on Rails 7.1.6
Since v5.2.8.1 PrivateSignature
handle_open()
No documentation comment.
Source
# File actioncable/lib/action_cable/connection/base.rb, line 184
def handle_open
@protocol = websocket.protocol
connect if respond_to?(:connect)
subscribe_to_internal_channel
send_welcome_message
message_buffer.process!
server.add_connection(self)
rescue ActionCable::Connection::Authorization::UnauthorizedError
close(reason: ActionCable::INTERNAL[:disconnect_reasons][:unauthorized], reconnect: false) if websocket.alive?
end
Defined in actioncable/lib/action_cable/connection/base.rb line 184
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionCable::Connection::Base