Hi @NikolayRenziglov-9001 - Can you detaill where your Blazor Server is hosted? I don't think that method will work without a correct SignalR binding through Azure Functions. Please see the following: SignalR Service bindings for Azure Functions and an example scenario where the specific SignalR Service Bindings for Azure Functions and Azure Cosmos DB trigger and bindings for Azure Functions 2.x and higher overview detail the specific version compatibility. I cannot find an example of using SignalR as the Cosmos DB directly.
Blazor Server apps use ASP.NET Core SignalR to communicate with the browser. SignalR's hosting and scaling conditions apply to Blazor Server apps.
Blazor works best when using WebSockets as the SignalR transport due to lower latency, reliability, and security. Long Polling is used by SignalR when WebSockets isn't available or when the app is explicitly configured to use Long Polling. When deploying to Azure App Service, configure the app to use WebSockets in the Azure portal settings for the service. For details on configuring the app for Azure App Service, see the SignalR publishing guidelines.