Sending a typed-array-buffer-schema model with an opcode? #237
Unanswered
Chroma72
asked this question in
Help / Questions
Replies: 1 comment 3 replies
-
Thanks :) I have never sent 2 models at the same time. Yes try to concatinate them with a separator. Or make a combined model? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So I'm using geckos.io and typed-array-buffer-schema to send game data (both are amazing libs btw Yandeu!), and I'm trying to figure out how to send more than one model through the raw channel. Best way is to use an opcode to differentiate the different packet types so you can do a Model.fromBuffer to the right Model. I can prepend a byte (opcode) to the buffer. How would you do it?
Beta Was this translation helpful? Give feedback.
All reactions