Skip to content

feat: added sseuri option#201

Closed
jsalaber wants to merge 3 commits intomainfrom
fix/use-proxy-in-sse-url
Closed

feat: added sseuri option#201
jsalaber wants to merge 3 commits intomainfrom
fix/use-proxy-in-sse-url

Conversation

@jsalaber
Copy link
Copy Markdown
Contributor

@jsalaber jsalaber commented Apr 20, 2026

Changes

  • added option to change hostname for sse url

Copilot AI review requested due to automatic review settings April 20, 2026 18:33
@jsalaber jsalaber requested a review from a team as a code owner April 20, 2026 18:33
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a new local option to override the SSE endpoint host/base URI used for realtime updates, allowing SSE traffic to be routed through a proxy or alternate hostname.

Changes:

  • Introduces DevCycleLocalOptions.SseUri (and constructor parameter) to override the SSE hostname/base URI.
  • Updates EnvironmentConfigManager to use the override when constructing the SSE URL.
  • Adds new using directives in the example program (currently unused).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
DevCycle.SDK.Server.Local/ConfigManager/EnvironmentConfigManager.cs Builds SSE URL using SseUri override when provided.
DevCycle.SDK.Server.Common/Model/Local/DevCycleLocalOptions.cs Adds SseUri option + constructor parameter and XML documentation.
DevCycle.SDK.Server.Local.Example/Program.cs Adds using System.Net; / using System.Text; imports.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread DevCycle.SDK.Server.Local/ConfigManager/EnvironmentConfigManager.cs
Comment on lines +243 to +246
var sseHostname = !string.IsNullOrEmpty(localOptions.SseUri)
? localOptions.SseUri
: sseProp.GetProperty("hostname").GetString();
var sseUri = sseHostname + sseProp.GetProperty("path").GetString();
Comment thread DevCycle.SDK.Server.Common/Model/Local/DevCycleLocalOptions.cs
Comment thread DevCycle.SDK.Server.Local.Example/Program.cs Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 20, 2026 18:45
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a new local SDK option to override the SSE host/URI used for realtime updates, allowing consumers to route SSE traffic through a different hostname (e.g., a proxy) while still using the config-provided SSE path.

Changes:

  • Introduced SseUri on DevCycleLocalOptions to override the SSE hostname/base URI.
  • Updated EnvironmentConfigManager to prefer localOptions.SseUri when constructing the SSE endpoint.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
DevCycle.SDK.Server.Local/ConfigManager/EnvironmentConfigManager.cs Uses the new option when building the SSE URL for SSEManager.
DevCycle.SDK.Server.Common/Model/Local/DevCycleLocalOptions.cs Adds the new SseUri option and wires it through the constructor.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +243 to +246
var sseHostname = !string.IsNullOrEmpty(localOptions.SseUri)
? localOptions.SseUri
: sseProp.GetProperty("hostname").GetString();
var sseUri = sseHostname + sseProp.GetProperty("path").GetString();
Comment thread DevCycle.SDK.Server.Local/ConfigManager/EnvironmentConfigManager.cs
Comment thread DevCycle.SDK.Server.Common/Model/Local/DevCycleLocalOptions.cs
@jsalaber jsalaber closed this Apr 20, 2026
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