Method: OpenC3::JsonDRbObject#initialize

Defined in:
lib/openc3/io/json_drb_object.rb

#initialize(url: ENV['OPENC3_API_URL'], timeout: 1.0, authentication: nil) ⇒ JsonDRbObject

Returns a new instance of JsonDRbObject.

Parameters:

  • url (String) (defaults to: ENV['OPENC3_API_URL'])

    The url of openc3-cosmos-cmd-tlm-api openc3-cosmos-cmd-tlm-api:2901

  • timeout (Float) (defaults to: 1.0)

    The time to wait before disconnecting 1.0

  • authentication (OpenC3Authentication) (defaults to: nil)

    The authentication object if nill initialize will generate



46
47
48
49
# File 'lib/openc3/io/json_drb_object.rb', line 46

def initialize(url: ENV['OPENC3_API_URL'], timeout: 1.0, authentication: nil)
  super(url: url, timeout: timeout, authentication: authentication)
  @uri = URI("#{url}/openc3-api/api")
end