Skip to content

Commit

Permalink
feat(api): expose dispatcher on AtpAgent
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieusieben committed May 13, 2024
1 parent ea7ba66 commit 70bfea9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/api/src/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class AtpAgent {
labelersHeader: string[] = []
proxyHeader?: string

protected dispatcher: AtpDispatcher
readonly dispatcher: AtpDispatcher

get com() {
return this.api.com
Expand Down
2 changes: 1 addition & 1 deletion packages/dev-env/src/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import AtpAgent, {
import { EXAMPLE_LABELER } from './const'

export class TestAgent extends AtpAgent {
protected dispatcher: SessionDispatcher
readonly dispatcher: SessionDispatcher

constructor(options: SessionDispatcherOptions) {
const dispatcher = new SessionDispatcher(options)
Expand Down

0 comments on commit 70bfea9

Please sign in to comment.