-
Notifications
You must be signed in to change notification settings - Fork 325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide easier way to create a TURN client #308
Comments
I was under the impression that
Since we do not return the For anything more complex, we would provide the familiar full
I see one problem with embedding the Then again, I'm also completely OK with your proposal too. One note: I'm not sure we want a hard dependency on |
There has been a discussion initiated on whether we might want to introduce an easier API for creating a TURN client in #276:
There is a slightly related PR in pion/stun#134, which introduces a new
stun.DialURI()
function.It can be used in conjunction with
pion/turn.NewClient()
.I am still pondering whether we also want to have a function in pion/turn to create a client directly by an TURN URI.
I've introduced a new type in
pion/stun
to pass additional settings to thestun.DialURI()
function:We could do the same for
pion/turn
.And thats where we probably need to discuss whether this addition would be a breaking API change as there exists already a
ClientConfig
struct.Maybe it could look something like this:
Ideas for a better API are welcome :)
The text was updated successfully, but these errors were encountered: