SignalR
5 TopicsAutomatic UI updates with Blazor
Starting with the new .NET 8 Blazor WebApp template, I hope to build an application whose pages automatically send updates to all users. For example, when Joe adds a payment to an invoice, Sue (who is viewing the same invoice) should see the new balance reflected on her screen the moment Joe clicks the Save button. Will this be possible without wiring up a special SignalR hub for each page/component? I've read that Blazor uses SignalR under the hood, so I'm hoping this can be accomplished without a lot of complex (and error-prone) extra work.224Views0likes0CommentsThreading problems in SignalR Hub
Hello, I implemented a SignalR Hub to make a game server. The idea is that when a room is full (4 people in it) I run a new game. A game: 1. We notify everybody 2. The first player send one data. 3. We switch to next one 4. while the game isn't finished: Ask the current player two data. Switch to next player My problem is that with that simple system, once the client sent the data, the server do nothing, that's why I think there is a data race somewhere that I don't see. Here is my Github repo in OkeyServer/ you have the server code, in OkeyScript/ you have all the functions needed for game logic. Thanks in advance for your help.287Views0likes0CommentsDeploy .net core 7 to IIS with SignalR
I am using .net core 7. I enabled IIS on my local pc. then publish the files to the inetpub folder, and configured everything. the http requests are working and I can see the website on localhost:5151, the problem the SignalR requests not working,and I dont know whats the problem and how can I solve it? on visual studio everything works as expected. also installed the dotnet 7 hosting bundle... I tried older solutions that I saw here on stack overflow like updating the web.config file without luck391Views0likes0CommentsBlazor static server render
I created a Blazor static server rendering app in dotNet 8. When I render a page there is no web socket connection but two web sockets automatically connect after reloading the page. The web socket name is "BlazorServerPerPage" and "connect?transport=webSockets&connectionToken=AQAAANCMnd8BFdERjHoAwE%2FCl%2BsBAAAAKC3HxdpWzk%2B%2Buzj%2FyAY8AQAAAAACAAAAAAAQZgAAAAEAACAAAABlb6W2gebcz78%2Fr%2F8shdCSzutFva74Ke%2FWv3BrboDhdAAAAAAOgAAAAAIAACAAAABmEpDtT%2Bp9g9AticccUyPGcVKJX8D2iHRAii00Y4HI4TAAAAD4IuGqYb7yHY%2F6vv7wVeVoZ6XxScT0lGAuIotgwoZDUBT44PKC1QhbJz4Zp6tztS5AAAAA5Hs05w4IauJrFWjLgFzo0zF8pj1dr6MFFwdCFS1Ew3Wtky7%2FKc1%2BSZNvmfqA%2B8%2FCsENStCDrLbjRwoLpj%2BcL8Q%3D%3D&requestUrl=https%3A%2F%2Flocalhost%3A7157%2F&browserName=&userAgent=Mozilla%2F5.0+(Windows+NT+10.0%3B+Win64%3B+x64)+AppleWebKit%2F537.36+(KHTML%2C+like+Gecko)+Chrome%2F119.0.0.0+Safari%2F537.36&browserIdKey=window.browserLink.initializationData.browserId&browserId=e114-ee35&tid=7". I think it's not supposed to happen. My app setting is "var builder = WebApplication.CreateBuilder(args); // Add services to the container. builder.Services.AddRazorComponents(); var app = builder.Build(); // Configure the HTTP request pipeline. if (!app.Environment.IsDevelopment()) { app.UseExceptionHandler("/Error", createScopeForErrors: true); // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts. app.UseHsts(); } app.UseHttpsRedirection(); app.UseStaticFiles(); app.UseAntiforgery(); app.MapRazorComponents<App>(); app.Run(); " So my question is, is It a bug? Please help me with the question ans.426Views0likes0Comments