Class: CommunicationEngine

CommunicationEngine

Comm Engine of every socket manager how the sockets interact. This class has the flow of control in the system

Constructor

new CommunicationEngine(socket, executionEngine)

Constructor that creates a CommunicationEngine of a particular socket
Parameters:
Name Type Description
socket Socket The Socket that this is the engine for
executionEngine ExecutionEngine The global singleton Engine
Source:

Methods

emitEnvironmentData(data)

Function that collates and sends environment data in a standardized format
Parameters:
Name Type Description
data JSON The data that must be sent
Source:

initializeEngine()

Function that initializes the socket with the events that it should listen for;
Source: