WebAssembly & Connections from Client to Outside World? #14074
Replies: 3 comments 4 replies
-
Typically, you would not give the client of a web app direct database access. That is a bad idea for several reasons. Instead you make some other server/API the client talks to, which then talks to the database/other service on behalf of the client. In which case you could probably get away with a simple ASP Core site and REST API in most cases. |
Beta Was this translation helpful? Give feedback.
-
Just a follow on thought... I was thinking that gRPC uses HTTP/2 and so it might be possible to use gRPC with WebAssembly. Looks like it is: Doesn't give generic sockets etc., but it might be relevant to building API proxies. Am open to comments... |
Beta Was this translation helpful? Give feedback.
-
I use a gRPC to ADO.NET (database) bridge project at: https://github.com/james-brighton/GrpcDataProvider It includes an Avalonia WebAssembly example. |
Beta Was this translation helpful? Give feedback.
-
In the not too distant future, I will be interested in building Avalonia apps for WebAssembly and have them run in a client browser. Critical to this will be the ability for the app to connect to the outside world. Specifically, I'm thinking about my MySQL or SSH.NET connections to a server somewhere.
What's the deal with WebAssembly and this type of connectivity?
Is this going to be possible?
If it's not possible now, will it be possible in the future? I read that WebSockets are possible with WebAssembly?
Cheers
Beta Was this translation helpful? Give feedback.
All reactions