I have an advertisement display project managed by SignalR in .NET Core. It is currently working well, and the client is happy with it.
However, I now want to implement subscription-based management for displaying data. If the subscription has expired, the advertisements should not be displayed; otherwise, they should be displayed as usual. The client connects to the SignalR hub only once, after which static data is displayed on the screen, and the client does not call any methods from the SignalR hub.
How can I manage the subscription scenario in this situation? Since the client is not calling any methods from the SignalR hub and only connects once, how can I fit the subscription scenario into this setup?

Prasad RaveendranPosted Aug 28, 2024, 3:05 AM
Hello Jayraj,
a quick question on " The client connects to the SignalR hub only once, after which static data is displayed on the screen, and the client does not call any methods from the SignalR hub."
how you are getting this static data ?
I believe, you have write the subscription check at server-side in Hub.
if you could provide the code snippet of the Hub and the clientside integration,let us come with a solution.