instance method
connect
Ruby on Rails 5.0.7.2
Since v5.0.7.2 Last seen in v5.0.7.2 Private — implementation detail, not part of the public APISignature
connect()
No documentation comment.
Source
# File actioncable/lib/action_cable/connection/faye_client_socket.rb, line 37
def connect
return if @faye
@faye = Faye::WebSocket.new(@env, @protocols)
@faye.on(:open) { |event| @event_target.on_open }
@faye.on(:message) { |event| @event_target.on_message(event.data) }
@faye.on(:close) { |event| @event_target.on_close(event.reason, event.code) }
@faye.on(:error) { |event| @event_target.on_error(event.message) }
end
Defined in actioncable/lib/action_cable/connection/faye_client_socket.rb line 37
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionCable::Connection::FayeClientSocket