• just_another_person@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    26 days ago

    I don’t even know where to begin with this 😂

    You had better alert the Internet at large and the developers of the apps being discussed here to let them that the very product they build is impossible then.

    Oh…wait: https://reintech.io/blog/using-node-js-to-access-remote-database

    A very basic example on how to do the very thing you said is not possible you say? While you’re at it, you better go alert Zoom, Google, Microsoft, and anyone else with a WebRTC app that they aren’t allowed to make connections to other things from the browser. It’s totally against the rules and impossible.

    🤣

    • Markaos@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      0
      ·
      26 days ago

      Node.js is a web server. It doesn’t run in a browser, therefore doesn’t deal with the browser sandbox. That should answer your first dig.

      For the second part, WebRTC is a standard that allows two WebRTC peers to communicate. You can’t use WebRTC to open an arbitrary TCP or UDP stream to for example a database, unless said database decides to implement a WebRTC peer support.