does this work? a "message" event doesn't automatically get deserialised, so you typically have to do a `JSON.parse(...)` to get the passed object back out.