3 ms·
I really like this guide to get started. Its a bit short though. I would really like to see the setup of a simple uni- or even bi-directional rpc or value bind
by chme 9y ago
I really like this guide to get started.
Its a bit short though. I would really like to see the setup of a simple uni- or even bi-directional rpc or value binding mechanism between react and rust.
- anderspitman 9y agoThe project that I extracted this from actually uses a bi-directional websocket with proto3. It's just a simple message system and doesn't have binding. The code isn't great or documented but you can check it out here: https://github.com/anderspitman/battle_beetles https://github.com/anderspitman/battle_beetles
- chme 9y agoThx! Nice. Maybe json-api on a websocket on the same port as a transport would also be possible? Protobuf seems a bit overkill for something that is that tightly integrated together IMO. But if it works, it works.
- anderspitman 9y agoThe use of protobuf is mostly to provide a schema and enforce strict[er] typing on JS.