your sample html file has to be hosted by a web server and must use the same protocol (http/https) as the blazer server.
also not sure blazor server can open the correct signal/r hub if its a different website. You may be able to get around this by configuring the signal/r hub in javascript blazor startup:
https://learn.microsoft.com/en-us/aspnet/core/blazor/fundamentals/startup?view=aspnetcore-7.0
note: all the examples have the server website hosting the custom element also hosting the blazor app.
you might find blazor WASM easier, as you can just deploy the static resources to the website hosting the html that will use it.