- What is your product version? 10.2.0
- What is your product type (Angular or MVC)? Angular
- What is product framework type (.net framework or .net core)? .NET Core
- What is ABP Framework version? 6.2.0
We have a custom SignalR hub that is meant to handle long-running connections, usually for multiple days. This is a problem with auth tokens because when they expire, the connection dies. The vanilla SignalR NPM package from Microsoft exposes an accessTokenFactory callback in the HubConnectionBuilder options, but the ABP abstraction for SignalR does not provide access to these options. How can we manage refreshing auth tokens on the client side for long-running SignalR connections?
5 Answer(s)
-
0
Hi @tusksoft
For now, you can copy https://github.com/aspnetboilerplate/aspnetboilerplate/blob/dev/src/Abp.Web.Resources/Abp/Framework/scripts/libs/abp.signalr-client.js to your project and modify it according to your needs. We will add this option for the next release, please follow https://github.com/aspnetboilerplate/aspnetboilerplate/issues/6538
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
Hi @tusksoft
For now, you can copy https://github.com/aspnetboilerplate/aspnetboilerplate/blob/dev/src/Abp.Web.Resources/Abp/Framework/scripts/libs/abp.signalr-client.js to your project and modify it according to your needs. We will add this option for the next release, please follow https://github.com/aspnetboilerplate/aspnetboilerplate/issues/6538
Hello @ismcagdas
We recently upgraded to ABP 8.0 and still do not see the
withUrlOptionsproperty available in theabp.signalrnamespace. It appears that theabp.signalr.d.tstype definition file does not include the new property. When can we expect this to be fixed?Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
Hi @tusksoft
Did you also update
abp-web-resourcesandabp-ng2-moduleto latest version ?Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
Hi @tusksoft
Did you also update
abp-web-resourcesandabp-ng2-moduleto latest version ?Yes. Our Angular project is using
abp-web-resourcesversion5.7.0andabp-ng2-moduleversion8.0.0. Our AN0 version is the latest version11.4.0. However, now that I'm looking at the change log for AN0, I see that AN011.4.0only includes ABP7.4. NPM does not list a version7.4.0for theabp-ng2-modulepackage, which is why we are using version8.0.0instead.Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
Hi,
It seems like you are right,
abp.signalr.d.tsis not updated. However, if you setabp.signalr.withUrlOptions, the JS code is using this and it should work. Could you try this ? We will updateabp.signalr.d.tswith the next minor version.Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)