lib/ury_rapid/server/updater.rb
# Handles a parsed WebSocket request
#
# Currently, the following requests are supported:
#
# * `auth` (`username`, `password`): Authenticates this WebSocket,
#   allowing access to requests and updates with the privileges of the
#   authenticated user.
#
# @api  private
#
# @param parsed [Hash]
#   The parsed JSON request to handle.
#
# @return [void]
Handles a parsed WebSocket request
Currently, the following requests are supported.


Handles a parsed WebSocket request Currently the following requests are supported .
def request_json(parsed)
        case parsed[:type]
        when 'auth'
          try_auth(parsed[:username], parsed[:password])
        else
          error("Unknown request: #{parsed[:type]}")
        end
      end
def request_json ( parsed ) case parsed [ :type ] when 'auth' try_auth ( parsed [ :username ] , parsed [ :password ] ) else error ( "Unknown request: #{parsed[:type]}" ) end end
Handles a parsed WebSocket request
Currently, the following requests are supported:
Handles a parsed WebSocket request Currently the following requests are supported :
None
void
parsed
The parsed JSON request to handle.
The parsed JSON request to handle .
api
None