e3x.js
function cleanup()
    {
      if(chan.timer) clearTimeout(chan.timer);
      chan.timer = setTimeout(function(){
        chan.state = "gone"; // in case an app has a reference
        x.channels[chan.id] = {state:"gone"}; // remove our reference for gc
      }, chan.timeout);
    }
function cleanup()
    {
      if(chan.timer) clearTimeout(chan.timer);
      chan.timer = setTimeout(function(){
        chan.state = "gone"; // in case an app has a reference
        x.channels[chan.id] = {state:"gone"}; // remove our reference for gc
      }, chan.timeout);
    }
function cleanup ( ) { if ( chan . timer ) clearTimeout ( chan . timer ) ; chan . timer = setTimeout ( function ( ) { chan . state = "gone" ; // in case an app has a reference x . channels [ chan . id ] = { state : "gone" } ; // remove our reference for gc } , chan . timeout ) ; }
track all active channels to route incoming packets called to do eventual cleanup
track all active channels to route incoming packets called to do eventual cleanup