Giter Club home page Giter Club logo

Comments (14)

dougajmcdonald avatar dougajmcdonald commented on September 27, 2024 2

You're probably right! I feel like browser UDP is close but not quite there at this second, interested to see how it could be pushed along. I often hear the argument against webRTC being 'its complicated' but if the alternative is nothing I don't see a sensible way round it. Hence why your project is interesting, implementing some like this in the browser might be tricky but would be widely appreciated. Will keep you posted

from netcode.

gafferongames avatar gafferongames commented on September 27, 2024 2

Looks like this issue is solved: https://github.com/RedpointGames/netcode.io-browser

from netcode.

benaadams avatar benaadams commented on September 27, 2024 1

Nice 👍

from netcode.

gafferongames avatar gafferongames commented on September 27, 2024

I'm afraid we're going to have to convince browser manufacturers to allow this spec to be implemented in-browser, as browsers do not allow sending and receiving of UDP packets directly, which would be required to implement this in a browser.

I'm working on it.

from netcode.

gafferongames avatar gafferongames commented on September 27, 2024

My advice is to focus on Mozilla and Brave browsers first.

from netcode.

dougajmcdonald avatar dougajmcdonald commented on September 27, 2024

Thanks for the swift reply, interestingly I did see this:

https://developer.chrome.com/apps/sockets_udp

But chrome only of course.

from netcode.

gafferongames avatar gafferongames commented on September 27, 2024

You could of course prototype with that, but I don't think JavaScript in a web browser is allowed to call it, only plug-ins.

from netcode.

gafferongames avatar gafferongames commented on September 27, 2024

Agreed. Thanks for your help!

from netcode.

gafferongames avatar gafferongames commented on September 27, 2024

ps. There is already an early set of C# bindings here: https://github.com/RedpointGames/netcode.io, but I think they are a bit out of date relative to the current C implementation in this repository. -- cheers

from netcode.

tobeorla avatar tobeorla commented on September 27, 2024

If you want UDP for the browser using js:
https://nodejs.org/api/dgram.html
https://github.com/alexstrat/simudp

from netcode.

gafferongames avatar gafferongames commented on September 27, 2024

I like the proxy idea for a proof of concept, but moving it beyond that, we'd want to be able to run with zero cost install on all browser platforms, eg. get the browsers updated to support netcode.io

from netcode.

benaadams avatar benaadams commented on September 27, 2024

Should be able to expose to javascript via:

npm package -> node/Electron which gives access to desktop install, and Steam via greenworks; may give angle for Brave

C# client lib (max .NET Standard 1.4) -> UWP (HTML+JS) which gives access to Win10 + XBox

At which point it would be running in Chrome (Electron) and Edge (UWP); though not the actual browsers themselves - but it gives a concrete use/example via the browser engines; as well as several gaming platforms.

from netcode.

benaadams avatar benaadams commented on September 27, 2024

Additionally may be able to add chrome extension; using sockets_udp; then do support detection; so a game could do multipath networking io based on whether is available; or gate on extension (though poor for game adoption)

from netcode.

gafferongames avatar gafferongames commented on September 27, 2024

Sounds pretty good. Prove it out first, the rest will follow.

from netcode.

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.