neworldlt
02/26/2018, 4:34 PMJoe
02/26/2018, 5:18 PMstreetsofboston
02/26/2018, 5:35 PMResetableSocketFactory that uses a SocketFactory and handles the ‘resets’ internally only. Then provide that ResetableSocketFactory as a singleton dependency.
The rest of your code then will use that singleton ResetableSocketFactory for the API calls, through Kodein, and resets will be invisible to all of your code (except to the code of your ResetableSocketFactory class of course)neworldlt
02/26/2018, 5:46 PMJoe
02/26/2018, 5:48 PMstreetsofboston
02/26/2018, 6:09 PM