I was able to compile grpc to asm.js using emscripten and run without errors, but I think you are correct, the client was not able to make a connection from the browser to the grpc server. I'm not sure what the path forward is yet. I am going to experiment with a c++ socket and see if webassembly will use websockets. I saw a post on stackoverflow <https://stackoverflow.com/questions/44637000/how-to-call-from-webassembly-websocket-api> that suggested this is the case
On Wednesday, March 14, 2018 at 3:45:47 PM UTC-4, Wenbo Zhu wrote: > > I worked on grpc/grpc-web, and I don't believe you are able to do any > native networking I/O from the browser, but if you have any pointer to > suggest otherwise, happy to have a look and assess the feasibility. > > > On Tuesday, March 13, 2018 at 6:25:53 AM UTC-7, Matthew Avery wrote: >> >> I did get grpc and protobuf compiles to WASM but it is not working yet, >> even after enabling SharedArrayBuffer on my browser. I'm getting a type >> exception on the first call to Atomics.store() that is trying to allocate >> memory for pthread support. >> >> On Friday, March 9, 2018 at 11:16:28 AM UTC-5, Matthew Avery wrote: >>> >>> I just started looking at this today. Any progress on your end? >>> >>> On Friday, January 19, 2018 at 6:03:04 AM UTC-5, andro...@gmail.com >>> wrote: >>>> >>>> Hi, >>>> I'm trying to compile grpc with Emscripten >>>> <http://kripken.github.io/emscripten-site/index.html> to WebAssembly >>>> <https://developer.mozilla.org/en-US/docs/WebAssembly> - trying to get >>>> a C++-based grpc client working in the browser. >>>> >>>> Does anyone know if getting this working is even feasible and has >>>> anyone else tried it? I'm having issues compiling (mostly Protobuf) which >>>> I >>>> think I'll be able to solve, but I'd like to know if the effort is worth >>>> it. >>>> >>> -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+unsubscr...@googlegroups.com. To post to this group, send email to grpc-io@googlegroups.com. Visit this group at https://groups.google.com/group/grpc-io. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/b2a50b3a-fd71-4d75-b77c-8e9a75858fe1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.