Method: ActionCable::Connection::Base#process

Defined in:
actioncable/lib/action_cable/connection/base.rb

#processObject

Called by the server when a new WebSocket connection is established. This configures the callbacks intended for overwriting by the user. This method should not be called directly – instead rely upon on the #connect (and #disconnect) callbacks.



74
75
76
77
78
79
80
81
82
# File 'actioncable/lib/action_cable/connection/base.rb', line 74

def process # :nodoc:
  logger.info started_request_message

  if websocket.possible? && allow_request_origin?
    respond_to_successful_request
  else
    respond_to_invalid_request
  end
end