Called by the server when a newWebSocket 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.
# 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