This is possible with emscipten by calling out to JS to do that
actual network requests.   Emscriptan has a couple of different builtin
APIs for this (see fetch.h and wget.h which are documented
https://emscripten.org/docs/api_reference/fetch.html and
https://emscripten.org/docs/api_reference/emscripten.h.html#id4), or you
can write you own use a JS library file or and EM_JS function.

cheers,
sam

On Sun, Jul 30, 2023 at 2:11 AM Ronny Nissengold <ronny....@gmail.com>
wrote:

> Hi all,
> We are using a third party library to authenticate users to use our code.
> The question is, when porting to WASM, will it be possible to use the
> third party as is? Is there any limitation to send and get a HTTPS request
> and response from WASM, or is it impossible due to the sandbox nature of
> EMSCRIPTEN?
> Thanks!
> Ronny.
>
> --
> You received this message because you are subscribed to the Google Groups
> "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to emscripten-discuss+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/emscripten-discuss/d44a5988-4deb-44a6-a323-384a23ef748an%40googlegroups.com
> <https://groups.google.com/d/msgid/emscripten-discuss/d44a5988-4deb-44a6-a323-384a23ef748an%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to emscripten-discuss+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/CAL_va28g7YeoRSuSsZ_9OJAZ_85P4Xp_ChQE4viRiQybn_6yMQ%40mail.gmail.com.

Reply via email to