Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webasm? #1903

Open
Grabber opened this issue Nov 2, 2024 · 2 comments
Open

webasm? #1903

Grabber opened this issue Nov 2, 2024 · 2 comments

Comments

@Grabber
Copy link

Grabber commented Nov 2, 2024

Is it possible to use nng as a webasm module for WebSocket?

I have one scenario where I would like to have just one low-level networking library to connect to WebSocket and use it as a base for Android, iOS, WebApp etc.

Is it possible somehow?

@gdamore
Copy link
Contributor

gdamore commented Nov 3, 2024

Yes, it can be done.. and has been done. Although I'm not too sure about specific details, and it may be tricky if the sandbox doesn't offer regular real networking access. (Arguably we could make a webasm platform port.)

@Grabber
Copy link
Author

Grabber commented Nov 3, 2024

@gdamore is there anyway to nng implement websockets natively on webasm? Or do we need to somehow use the existing javascript api and interface it backwards to C?

Is there any code to investigate?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants