accept = (
      proposedRemoteGateway,
      cancelConnection,
      connectionCancelled,
      connectionDispose,
    ) => {
      state = state.accept(
        proposedRemoteGateway,
        cancelConnection,
        connectionCancelled,
        connectionDispose || (() => {}),
      );
    }
@param {Promise<EndoGateway>} proposedRemoteGateway
@param {(error: Error) => void} cancelConnection
@param {Promise<never>} connectionCancelled
@param {() => void} connectionDispose