Class: OpenC3::RunningScriptWebSocketApi
- Inherits:
-
ScriptWebSocketApi
- Object
- WebSocketApi
- ScriptWebSocketApi
- OpenC3::RunningScriptWebSocketApi
- Defined in:
- lib/openc3/script/web_socket_api.rb
Overview
Running Script WebSocket
Constant Summary
Constants inherited from WebSocketApi
Instance Method Summary collapse
-
#initialize(id:, url: nil, write_timeout: 10.0, read_timeout: 10.0, connect_timeout: 5.0, authentication: nil, scope: $openc3_scope) ⇒ RunningScriptWebSocketApi
constructor
A new instance of RunningScriptWebSocketApi.
Methods inherited from ScriptWebSocketApi
Methods inherited from WebSocketApi
#connect, #connected?, #disconnect, #generate_auth, #read, #read_message, #subscribe, #unsubscribe, #write, #write_action
Constructor Details
#initialize(id:, url: nil, write_timeout: 10.0, read_timeout: 10.0, connect_timeout: 5.0, authentication: nil, scope: $openc3_scope) ⇒ RunningScriptWebSocketApi
Returns a new instance of RunningScriptWebSocketApi.
209 210 211 212 213 214 215 |
# File 'lib/openc3/script/web_socket_api.rb', line 209 def initialize(id:, url: nil, write_timeout: 10.0, read_timeout: 10.0, connect_timeout: 5.0, authentication: nil, scope: $openc3_scope) @identifier = { channel: "RunningScriptChannel", id: id } super(url: url, write_timeout: write_timeout, read_timeout: read_timeout, connect_timeout: connect_timeout, authentication: authentication, scope: scope) end |