Skip to content
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

Get real-time notification configuration from Chat Gateway #31472

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

angellan-msft
Copy link
Contributor

@angellan-msft angellan-msft commented Oct 20, 2024

Packages impacted by this PR

@azure/communication-signaling

Describe the problem that is addressed by this PR

This PR is used for retrieving Trouter Config from Chat GW rather than hardcode it in signaling client.
There are 2 main changes.
1.Remove the "environment" from SignalingClientOptions as it should be retrieved from Chat GW;
2.Declare a TrouterConfigClientOptions and pass it to Signaling Client constructor since this is needed for signaling client to make http call to Chat Gateway.

Command used to generate this PR:**(Applicable only to SDK release request PRs)

Checklists

  • [Yes] Added impacted package name to the issue description
  • [No] Does this PR needs any fixes in the SDK Generator?** (If so, create an Issue in the Autorest/typescript repository and link it here)
  • [TODO] Added a changelog (if necessary)

@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

resourceEndpoint: options?.resourceEndpoint ?? undefined,
gatewayApiVersion: options?.gatewayApiVersion ?? undefined,
additionalPolicies: options?.additionalPolicies ?? undefined,
Copy link
Member

Choose a reason for hiding this comment

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

It's following existing code, but I don't think you need to ?? with undefined

Suggested change
additionalPolicies: options?.additionalPolicies ?? undefined,
additionalPolicies: options?.additionalPolicies,

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

Successfully merging this pull request may close these issues.

3 participants