lib/openc3/io/json_api_object.rb in openc3-5.0.11 vs lib/openc3/io/json_api_object.rb in openc3-5.1.0

- old
+ new

@@ -14,10 +14,13 @@ # GNU Affero General Public License for more details. # Modified by OpenC3, Inc. # All changes Copyright 2022, OpenC3, Inc. # All Rights Reserved +# +# This file may also be used under the terms of a commercial license +# if purchased from OpenC3, Inc. require 'openc3' require 'openc3/utilities/authentication' require 'openc3/io/json_drb' @@ -40,19 +43,19 @@ # json = JsonDrb.new # json.start_service('127.0.0.1', 7777, self) # # Now the JsonApiObject can be used to call server methods directly: # - # server = JsonApiObject('http://openc3-cmd-tlm-api:2901', 1.0) + # server = JsonApiObject('http://openc3-cosmos-cmd-tlm-api:2901', 1.0) # server.cmd(*args) # class JsonApiObject attr_reader :request_data attr_reader :response_data USER_AGENT = 'OpenC3 / v5 (ruby/openc3/lib/io/json_api_object)'.freeze - # @param url [String] The url of openc3-cmd-tlm-api http://openc3-cmd-tlm-api:2901 + # @param url [String] The url of openc3-cosmos-cmd-tlm-api http://openc3-cosmos-cmd-tlm-api:2901 # @param timeout [Float] The time to wait before disconnecting 1.0 # @param authentication [OpenC3Authentication] The authentication object if nill initialize will generate def initialize(url: ENV['OPENC3_API_URL'], timeout: 1.0, authentication: nil) @http = nil @mutex = Mutex.new