Method |
Description |
|
getLastEvent ( ) : integer |
Gets the last event time
lastEvent needs exposing for things such as unit testing |
|
getLastPing ( ) : integer |
Gets the last ping time
lastPing needs exposing for things such as unit testing |
|
onConnect ( ) : void |
Initialize event timestamps upon connecting to the server. |
|
onTick ( ) : void |
Performs a self ping if the event threshold has been exceeded or
issues a termination command if the ping threshold has been exceeded. |
|
preEvent ( ) : void |
Updates the timestamp since the last received event when a new event
arrives. Also, clears the ping time as well. |
|
setLastEvent ( integer | null $event = null ) : self |
Set the last event time
lastEvent needs to be exposed for unit testing |
|
setLastPing ( integer | null $ping = null ) : self |
Set the last ping time
lastPing needs to be exposed for unit testing |
|