Skip to content

Commit

Permalink
Pass connect options to room from connection checkers (#1245)
Browse files Browse the repository at this point in the history
* Pass connect options to room from connection checkers

* Create chilled-insects-collect.md

---------

Co-authored-by: lukasIO <mail@lukasseiler.de>
  • Loading branch information
jespermjonsson and lukasIO authored Sep 9, 2024
1 parent b945a07 commit e71eec3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/chilled-insects-collect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"livekit-client": patch
---

Pass connect options to room from connection checkers
2 changes: 1 addition & 1 deletion src/connectionHelper/checks/Checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export abstract class Checker extends (EventEmitter as new () => TypedEmitter<Ch
if (this.room.state === ConnectionState.Connected) {
return this.room;
}
await this.room.connect(this.url, this.token);
await this.room.connect(this.url, this.token, this.connectOptions);
return this.room;
}

Expand Down

0 comments on commit e71eec3

Please sign in to comment.