docs: function LocalConnection(transport, id, receive) {
    this.transport = transport;
    this.id = id;
  
    // register the agents receive function
    if (this.id in this.transport.agents) {
      throw new Error('Agent with id ' + id + ' already exists');
    }
    this.transport.agents[this.id] = receive;
  
    // ready state
    this.ready = Promise.resolve(this);
  }