The listener will be called every durationMs - typically every second.
This was written first, flung an actor on the front
When people register with me for events that fire they pass in their own listeners.
When people register with me for events that fire they pass in their own listeners. These listeners will be executed within my Thread - so they are in charge of Telling other actors to do stuff.
Created by Jonathan during 2017.
1.
1. If we have done nothing for heartbeat period, send a heartbeat. 2. If the counterparty has done nothing for heartbeat + a reasonable time send a TestRequest. Wait for heartbeat*2 and if no answer then logout with LogoutMessageType= "Test Request Timeout"
Simply tick every period and call back to the listeners WHY NOT DO AS AN ACTOR? Maybe I should have.
The listener will be called every durationMs - typically every second. Its up to the listener to decide if its own timeout etc needs to fire