Could someone explain how this works? In particular, I don’t understand why the following code doesn’t correctly deserialize the output to what it was originally:
A network message contains a messageId and a size header. When a server or client receives a message, it reads that header information first, then passes the rest of the message contents onto the handler function that was registered with RegisterHandler().
The NetworkReader object passed to the handler function can be used like: