DeviceConnectionTimeout
DESCRIPTION
The purpose of this utility is to timeout a Device connection which has experienced inactivity. Inactivity is defined such that the signaling channel has been open but there has not been a RTCPeerConnection in the connected
state for a certain amount of time. If that is the case the resource should be freed.
Algorithm: The timer is started if the RTCPeerConnection is not in the connected
state. Whenever the RTCPeerConnection gets to the connected
state the timer is cleared.
Initially there is no RTCPeerConnection but the timer still runs such that resources will not leak if the client forgets to send a proper initial message.
DECLARATION
export class DeviceConnectionTimeout