-
I would like to ask you guys about opinions related to my challenge and possible solutions inside the Oqtane framework. I want to have a small area of the application dedicated to receive notifications from my backend. My plan is to have Runtime parameter set to WebAssembly in my application. Notifications can come from multiple services. Mostly, notifications will just be displayed to the user, but there will also be such notifications which will trigger modal form or popup filled with data. Notifications will be sent over SignalR channel from the backend, or at least this is the plan for now. Another option is to have a singleton object in the Oqtane subscribed to some queue or topic where notifications will be published, but my questions are not related to that option because I think I understand how to implement that. I will have to register a singleton from the external module by using IClientStartup and subscribe to the queue inside the constructor, so this is clear, I hope. My questions are following:
Thanks a lot, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I have not had time to experiment with SignalR on Blazor WebAssembly yet. I assume you have already seen the documentation from Microsoft on this topic which seems to indicate it is fairly straightforward: From an Oqtane perspective there are a few options:
In both cases you need to keep in mind that when running on WebAssembly there is only a single page request to the server when the browser first connects, and after that the only interactions with the server are via WebAPI requests retrieving data - there are no page requests. So the SignalR connection should be preserved. |
Beta Was this translation helpful? Give feedback.
I have not had time to experiment with SignalR on Blazor WebAssembly yet. I assume you have already seen the documentation from Microsoft on this topic which seems to indicate it is fairly straightforward:
https://docs.microsoft.com/en-us/aspnet/core/tutorials/signalr-blazor?view=aspnetcore-5.0&tabs=visual-studio&pivots=webassembly
From an Oqtane perspective there are a few options:
In both cases you need to keep in mind that when running on WebAssembly there is only a si…