In my last post I talked a little bit about my ideas for encoding my messages, so I thought I’d elaborate a little bit. Basic Premise To encode an object I’m going to start with converting the object into a proxy object which is simply a map of string -> string. So for example an
Continue reading Message Mircoformat and Serialisation
Tag: serialisation
Message Passing in Web Workers
Once I’d implemented the Web Worker split, I had a new problem: How do I pass the messages back and forth? The main issues here is that I have to send the game state from the worker and the web page, and send requests for player interaction to the worker. Message Object The first thing
Continue reading Message Passing in Web Workers