Class: Contrast::Api::Communication::SocketClient
- Includes:
- Components::Interface
- Defined in:
- lib/contrast/api/communication/socket_client.rb
Overview
SocketClient acts as a interface between the agent and the service. It instantiates a service proxy and tracks the state of that proxy.
Instance Method Summary collapse
-
#initialize ⇒ SocketClient
constructor
A new instance of SocketClient.
-
#send_one(event) ⇒ Object
Wrap the given DTM in a Contrast::Api::Dtm::Message and send it to the Service for processing.
Methods included from Components::Interface
Constructor Details
#initialize ⇒ SocketClient
Returns a new instance of SocketClient.
20 21 22 |
# File 'lib/contrast/api/communication/socket_client.rb', line 20 def initialize @socket = init_connection end |