-
Notifications
You must be signed in to change notification settings - Fork 75
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
Planning to support web/wasm? #11
Comments
Yes! One of the next steps is to give support to Websockets |
Cool! Does that extend to your asciiarena demo game as well? AFAIK tui-rs doesn’t run on the web. You’d need to use something like bracket-lib instead. |
That's precisely the point 😃 . I want to make a frontend abstraction for asciiarena to support different frontends (because as you say, And yes, probably this will be the chosen library. I saw the tutorial book about |
I didn't know that bracket-lib also supports |
Nice! We’re already doing that in the bracket-based Shotcaller. We also intend to make it networked, following a closer evaluation of our options in about a month. If by that time you’ve had a chance to write a bit about how message-io compares to the other netcode libraries out there that’d be immensely useful. The ones I’m aware of are:
|
I'm glad to hear that you're valuing using I knew about these other libraries but I did not use them (maybe I an wrong in some point), but, from my understanding:
|
Super helpful! 🙏 What we’re doing would probably work fine with a pretty simple tcp layer. Also very important to note that the most important thing for me right now as a game designer and publisher is to just see the core idea of the game in the most fully realized state possible at minimum cost. All I want from a netcode library at this stage is to let me prototype the online experience of the game as easily as possible. If it doesn’t scale past 50 or even just 2 concurrent players, that’s fine by me. As long as I can play online with one other person, that covers the bare minimum most needed right now. |
Then, probably |
From version |
@lemunozm Is it possible to use the websocket on the client side (web) as a direct interface to web-sys? It seems like this is just for the server right now. |
Hi @iMplode-nZ, if I understand you well, yes. I have to add an example working with wasm but websocket should work in both, client and server sides. Currently there is a ping-pong example that can be configured to use Websocket as client side. If you refer to use the Websocket found in web-sys to communicate with a websocket server in message-io. I have not tested, but should work also. |
Thanks. Maybe say this in the readme as its rather confusing? |
Although you can use WebSocket in Feature tracking to archieve this: #100 |
Do you intend to eventually support browser games or is that out of scope?
Naia achieves this by using webrtc-unreliable.
The text was updated successfully, but these errors were encountered: