Attaching the Implementation of the DOFConnection.StateListener
Once created, the implementation of the DOFConnection.StateListener needs to be added to the connection. Here we attach the DOFConnection.StateListener.
How It Works
A DOFConnection.StateListener is added by calling DOFConnection.addStateListener.