[Problem/Question]
The OnSessionTokenRequired callback was not triggered when the session token expired in the .NET SDK (v4.1.1).
We have confirmed a similar issue existed and was resolved in the JavaScript SDK, suggesting a possible related cause.
[SDK Version]
.NET SDK v4.1.1 (used in .NET Framework 4.8 WPF)
[Reproduction Steps]
-
Call SendbirdChat.Init(…)
-
Register SendbirdChat.SetSessionHandler(…)
-
Call SendbirdChat.Connect(userId, sessionToken, …)
-
Wait until the session token expires
-
The OnSessionTokenRequired callback is expected but never called
-
Meanwhile, the OnSessionError callback is called when the session expires
[Frequency]
Occurs every time. (OnSessionTokenRequired is never called)
[Current impact]
Automatic session token renewal does not work, so after session expiration, the client must reconnect by calling Connect again to resume normal operation.
[Additional Notes]
A similar issue was confirmed to have existed and been resolved in the JavaScript SDK:
Please verify if a similar internal trigger omission exists in the .NET SDK.