Repository navigation
How to make a Blazor WebAssembly app listen for http requests? #25994
Answered
by
SteveSandersonMS
stefanalexandru02
asked this question in
General
|
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. |
Answered by
SteveSandersonMS
Sep 17, 2020
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. |
0 replies
Answer selected by
SteveSandersonMS
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to 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.