Skip to content

Export ClientWithOptionsContext#473

Open
HashimTheArab wants to merge 3 commits into
pion:mainfrom
HashimTheArab:codex/client-options-context
Open

Export ClientWithOptionsContext#473
HashimTheArab wants to merge 3 commits into
pion:mainfrom
HashimTheArab:codex/client-options-context

Conversation

@HashimTheArab

@HashimTheArab HashimTheArab commented Jun 27, 2026

Copy link
Copy Markdown

This PR exports ClientWithOptionsContext so that a follow-up pion/webrtc PR can implement SCTPTransport.StartContext.

@HashimTheArab HashimTheArab marked this pull request as ready for review June 27, 2026 08:15
@codecov

codecov Bot commented Jun 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.46%. Comparing base (e50ddbe) to head (d6c6691).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #473      +/-   ##
==========================================
- Coverage   84.54%   84.46%   -0.08%     
==========================================
  Files          56       56              
  Lines        5267     5267              
==========================================
- Hits         4453     4449       -4     
- Misses        579      581       +2     
- Partials      235      237       +2     
Flag Coverage Δ
go 84.46% <100.00%> (-0.08%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@HashimTheArab

Copy link
Copy Markdown
Author

@JoTurk

@JoTurk JoTurk self-requested a review June 29, 2026 23:31
@JoTurk

JoTurk commented Jun 29, 2026

Copy link
Copy Markdown
Member

Thank you, I'll try to review it in the morning, one thing tho, we shouldn't add withOptions to the name as this is a temporary name until we release the next major version and move to functional option only.
Also can you explain a use case for this API.

@HashimTheArab

Copy link
Copy Markdown
Author

Got it, thanks, and the reason is what I explained in the PR description, a follow-up PR will need this to add SCTPTransport.StartContext which is for the same reason of pion/webrtc#3371

HashimTheArab and others added 2 commits June 29, 2026 19:54
The WithOptions suffix is transitional naming that will be dropped in the
next major version when the functional-options constructor becomes Client.
Name the exported context variant ClientContext so it stays stable across
that change.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@HashimTheArab

Copy link
Copy Markdown
Author

@JoTurk let me know if anything else is needed, thanks!

@JoTurk

JoTurk commented Jul 8, 2026

Copy link
Copy Markdown
Member

Sounds good, I'll try to check this tonight

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants