Coder Social home page Coder Social logo

Compile into .wasm about tox HOT 5 OPEN

tox-rs avatar tox-rs commented on May 23, 2024
Compile into .wasm

from tox.

Comments (5)

bddap avatar bddap commented on May 23, 2024 2

There is a new library for unordered webRTC data channels. It's not UDP, but it's analogous. https://github.com/kyren/webrtc-unreliable

from tox.

kpp avatar kpp commented on May 23, 2024 1

You cannot use raw tcp/udp in browser however you can use WebSockets. In Tox network there are tcp relays, we can add some code into tcp relays to accept websockets too.
So I believe it is possible.

from tox.

najamelan avatar najamelan commented on May 23, 2024

Is it possible for the browser to make the necessary connections to the tox network, or would it always have to pass over a server with the browser acting as a gui frontend?

I know that people are working on porting libp2p to wasm, but I don't know how they plan to support tcp, udp etc connections. I thought that wasn't possible in a browser, but I might be mistaking.

from tox.

NamsooCho avatar NamsooCho commented on May 23, 2024

But I can't find nice solution for udp. WebRTC may not be a good solution to do this. Because it is too complex and heavy.

from tox.

kpp avatar kpp commented on May 23, 2024

You cannot use UDP in WebSockets. Tox tcp relay is designed in such a way to let users communicate with each other even without a UDP connections.

from tox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.