• Or something like this

    var timer
    function callWhenBytesReceived() {
    if (timer) {clearTimeout(timer); timer=0;}
    timer=setTimeout("onDisconnect()",3000)
    }
    
About

Avatar for DrAzzy @DrAzzy started