How to make a Blazor WebAssembly app listen for http requests? #25994
-
Is it possible to have an HTTP server running in a Blazor WebAssembly App (on the client)? The scenario would be the following: I have a client app (Blazor WebAssembly) running on a device. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
No, sorry. Browsers don't provide a mechanism for listening for HTTP requests. This kind of arbitrary TCP listener is not permitted within the browser sandbox, and so it's not possible for Blazor WebAssembly to do that. |
Beta Was this translation helpful? Give feedback.
No, sorry. Browsers don't provide a mechanism for listening for HTTP requests. This kind of arbitrary TCP listener is not permitted within the browser sandbox, and so it's not possible for Blazor WebAssembly to do that.