WebRTC delay on iceConnectionState – ‘disconnected’

Two peers are connected – host and client

Client gets offline and iceConnectionState – ‘disconnected’ on host is triggered after about 3-7 seconds

Why is there a delay ? and how to remove that delay?

I just wanted get online status of user in realtime