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
back
1 comments
Thx! 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.
The use of protobuf is mostly to provide a schema and enforce strict[er] typing on JS.