Blazor static server render

Copper Contributor

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.

0 Replies