If the message has no type then pm exits with a warning; could there be a better way to handle these messages?
It's not a problem for my own code, but this makes communicating with certain iframes (e.g. Vimeo universal embed) impossible using the plugin.