Creating the DOFConnectionReconnectingListener

The DOFConnectionReconnectingListener is an implementation of a DOFConnection.StateListener that will cause the connection to automatically be reconnected if the connection is ever disconnected. Here we create the DOFConnectionReconnectingListener.

How It Works

This implementation is recommended anytime a connection should always be connected.