A lot has been said before, and I will add it based on my experience:
The difference between Blazor WASM and Blazor server is well documented.
Blazor Server
Blazor WebAssembly
A hosted Blazor WASM project is just a way to host Blazor WASM (client) in a ASP.NET Core Web Application. If you look at the server project reference you'll see it references the client application. If you take a look at the fallback route, it returns index,.htm which is the Blazor WASM application.
https://stackoverflow.com/questions/58093386/whats-the-difference-between-asp-net-core-hosted-and-server-side-blazor-really
@AgaveJoe
, thanks for the reply.
I am looking for how the application works really.
So when a user first go to the Hosted WASM what happens? Does the client code get downloaded to the device? If it does then when the client makes call to an API does the call go through the server? What is the use of SignalR in WASM hosted?It kind of makes sense in Server side , as the difference in html is rendered by server to client, but how does that work in hosted.
Thanks
So when a user first go to the Hosted WASM what happens? Does the client code get downloaded to the device? If it does then when the client makes call to an API does the call go through the server?
A request to the server's root returns the Blazor WASM application; index.html. Try adding /WeatherForecast to the end of the URL and you'll see the results of executing the WeatherForecastController on the server.
What is the use of SignalR in WASM hosted?
I'm not sure where you are coming up with this notion. SignalR is not a default configuration in Blazor WASM. SignalR must be configured in Blazor WASM if you wish to use SignalR.
It kind of makes sense in Server side , as the difference in html is rendered by server to client, but how does that work in hosted.
It's exactly the same concept. The Blazor application has to be hosted somewhere. Why not host it with an ASP.NET Core application? They you don't have to worry about CORS or having two separate web applications.
Have you read the links in my first post?