lib/ury_rapid/server/updater.rb
def request(message)
        json = JSON.parse(message)
      rescue JSON::ParserError
        send_json(type: :fail, message: 'Invalid JSON')
      else
        json.deep_symbolize_keys!
        request_json(json)
      end
# Handles a WebSocket request
#
# Since the request comes in as JSON, this method first parses the JSON,
# and sends the parsed result to #request_json.
#
# @api  private
#
# @param message [String]
#   The JSON request to handle.
#
# @return [void]
Handles a WebSocket request
Since the request comes in as JSON, this method first parses the JSON,
and sends the parsed result to #request_json.
Handles a WebSocket request Since the request comes in as JSON this method first parses the JSON and sends the parsed result to #request_json .
def request(message)
        json = JSON.parse(message)
      rescue JSON::ParserError
        send_json(type: :fail, message: 'Invalid JSON')
      else
        json.deep_symbolize_keys!
        request_json(json)
      end
def request ( message ) json = JSON . parse ( message ) rescue JSON :: ParserError send_json ( type : :fail , message : 'Invalid JSON' ) else json . deep_symbolize_keys! request_json ( json ) end
Handles a WebSocket request
Since the request comes in as JSON, this method first parses the JSON,
and sends the parsed result to #request_json.
Handles a WebSocket request Since the request comes in as JSON this method first parses the JSON and sends the parsed result to #request_json .
None
void
message
The JSON request to handle.
The JSON request to handle .
api
None