Example of Multiple WASM Client in Blazor project.
This application demonstrate the use of Multiple Client Application in a Blazor WASM project.
Each application will running on a different port or host name.
The Blazor Server project, via the Web API controllers, will provide the data for both projects.
From original question by alexsey bobrovitch on Stackoverflow
Select MultiClientApplicationWasmExample.Server as startup method.
The Client WASM applications are both hosted via Blazor Server project.
The first application is hosted via TCP port 5001, the second via TCP port 5002.
Try to switch between the two client application.
You can see that the WeatherForecast controller working as expected from both the client applications.
Take a look to the Route controller configuration.
This project is based on the original documentation from Microsoft: Hosted deployment with multiple Blazor WebAssembly apps