Skip to content

Commit

Permalink
fix(typings): MediaConnection.answer() doesn’t need a stream anym…
Browse files Browse the repository at this point in the history
…ore, thanks @matallui!
  • Loading branch information
jonasgloning committed May 25, 2022
1 parent 8816f54 commit 666dcd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mediaconnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class MediaConnection extends BaseConnection {
}
}

answer(stream: MediaStream, options: AnswerOption = {}): void {
answer(stream?: MediaStream, options: AnswerOption = {}): void {
if (this._localStream) {
logger.warn(
"Local stream already exists on this MediaConnection. Are you answering a call twice?",
Expand Down

1 comment on commit 666dcd9

@matallui
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks for doing this!

Please sign in to comment.