How to update Realtime SessionConfiguration? #426
Answered
by
StephenHodgson
TypeDefinition
asked this question in
Q&A
|
Hi there! Currently, I am trying to update a RealtimeSession's SessionConfiguration using the UpdateSessionRequest message. However, when I create a new SessionConfiguration, it automatically creates a new ClientSecret as well, resulting in me getting a To fix this, I had to change the SessionConfiguration.ClientSecret property to be public settable, so that I can set it to the same ClientSecret as my old SessionConfiguration. Is there a proper way for me to do this? Thank you. |
Answered by
StephenHodgson
Nov 5, 2025
Replies: 1 comment 11 replies
|
The client secret value is not set able. It comes directly from the API |
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found the problem. We're creating a new client secret in the constructor, but in reality we should not be doing this for updates.
The API does not expect a client secret for the update event, so I'll remove it before sending.
The following is the smallest repro:
I added this to the unit tests as well.
I'll make the fixes in the next release: