Skip to content
This repository was archived by the owner on Nov 25, 2022. It is now read-only.

Conversation

@julien-meichelbeck
Copy link
Contributor

This will allow to use the following options :

  • proxyUrl
  • connectionEventsSuppressed
  • ipWhitelist
  • iceConfig

@msach22
Copy link
Contributor

msach22 commented Mar 19, 2020

Thanks for the PR @julien-meichelbeck . I would not pass in specific options, I would just add an options object and let the SDK validate.

What do you think?

@julien-meichelbeck
Copy link
Contributor Author

Thanks for the PR @julien-meichelbeck . I would not pass in specific options, I would just add an options object and let the SDK validate.

I wish we could but there is an eslint rules that forbids the usage of PropTypes.object so I had to specify it

@msach22
Copy link
Contributor

msach22 commented Mar 19, 2020

@julien-meichelbeck Could you use PropTypes.objectOf(PropTypes.object) instead? That should be okay, I think.

@msach22 msach22 self-requested a review March 19, 2020 22:26
@julien-meichelbeck
Copy link
Contributor Author

Sure I can (but if you end up doing that, I think it make more sense to remove the rule, don't you think?)

@julien-meichelbeck
Copy link
Contributor Author

It's not really an object of objects also, option types are string, bool and object

@msach22
Copy link
Contributor

msach22 commented Mar 19, 2020

Yes, we can disable the rule as well. I believe this should work as well? PropTypes.shape({}). My concern is that we'll lock in specific session options in the package and then have duplication. I think it's better to rely on the SDK to validate the options.

@julien-meichelbeck
Copy link
Contributor Author

I think it's better to rely on the SDK to validate the options.

I completely agree, that's why I disabled the rule for Proptypes.object, should be good now !

Copy link
Contributor

@enricop89 enricop89 left a comment

Choose a reason for hiding this comment

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

LGTM

@enricop89 enricop89 changed the base branch from master to dev March 20, 2020 09:58
@enricop89
Copy link
Contributor

Changed base branch to dev

Copy link
Contributor

@msach22 msach22 left a comment

Choose a reason for hiding this comment

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

LGTM

@msach22 msach22 merged commit bec3d60 into opentok:dev Mar 20, 2020
taqimustafa added a commit to taqimustafa/opentok-react that referenced this pull request Jun 19, 2021
Added type for session options (opentok#98)
taqimustafa added a commit to taqimustafa/opentok-react that referenced this pull request Jun 19, 2021
Added session options type (opentok#98)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants