How to update Realtime SessionConfiguration? #426
-
|
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. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 11 replies
-
|
The client secret value is not set able. It comes directly from the API |
Beta Was this translation helpful? Give feedback.
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: