3 ms·
The 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 cod
by anderspitman 9y ago
The 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.