Skip to content

Commit

Permalink
feat: connection url includes path
Browse files Browse the repository at this point in the history
  • Loading branch information
konojunya committed Jul 1, 2021
1 parent eedbde0 commit 652b3ae
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/acot-runner/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,11 @@ export class AcotRunner<T extends RunnerOptions = {}> implements Runner {
}

protected async connect(): AcotRunnerConnectResult {
const { origin, connection } = this.config;
const { origin, paths, connection } = this.config;
const url =
paths != null && paths.length > 0 ? `${origin}${paths[0]}` : origin!;

this.conn = new Connection(origin!, {
this.conn = new Connection(url, {
timeout: connection?.timeout,
command: connection?.command,
});
Expand Down

0 comments on commit 652b3ae

Please sign in to comment.