code: function remove(e,d,packer,counters,conns,children,dir,id){
    if(dir == IN) conns.out.delete(id);
    else conns.in.delete(id);
    counters.connections--;
    children.value--;
    packer.pack([dir,id]);
  }
docs: Subconnection listeners