Class: OpenC3::AllScriptsWebSocketApi

Inherits:
ScriptWebSocketApi show all
Defined in:
lib/openc3/script/web_socket_api.rb

Overview

All Scripts WebSocket

Constant Summary

Constants inherited from WebSocketApi

WebSocketApi::USER_AGENT

Instance Method Summary collapse

Methods inherited from ScriptWebSocketApi

#generate_url

Methods inherited from WebSocketApi

#connect, #connected?, #disconnect, #generate_auth, #read, #read_message, #subscribe, #unsubscribe, #write, #write_action

Constructor Details

#initialize(url: nil, write_timeout: 10.0, read_timeout: 10.0, connect_timeout: 5.0, authentication: nil, scope: $openc3_scope) ⇒ AllScriptsWebSocketApi

Returns a new instance of AllScriptsWebSocketApi.



220
221
222
223
224
225
# File 'lib/openc3/script/web_socket_api.rb', line 220

def initialize(url: nil, write_timeout: 10.0, read_timeout: 10.0, connect_timeout: 5.0, authentication: nil, scope: $openc3_scope)
  @identifier = {
    channel: "AllScriptsChannel",
  }
  super(url: url, write_timeout: write_timeout, read_timeout: read_timeout, connect_timeout: connect_timeout, authentication: authentication, scope: scope)
end