- 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
-
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
withUrlOptions
property available in theabp.signalr
namespace. It appears that theabp.signalr.d.ts
type definition file does not include the new property. When can we expect this to be fixed? -
0
Hi @tusksoft
Did you also update
abp-web-resources
andabp-ng2-module
to latest version ? -
0
Hi @tusksoft
Did you also update
abp-web-resources
andabp-ng2-module
to latest version ?Yes. Our Angular project is using
abp-web-resources
version5.7.0
andabp-ng2-module
version8.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.0
only includes ABP7.4
. NPM does not list a version7.4.0
for theabp-ng2-module
package, which is why we are using version8.0.0
instead. -
0
Hi,
It seems like you are right,
abp.signalr.d.ts
is 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.ts
with the next minor version.