See [the standard](http://www.w3.org/TR/workers/#communicating-with-a-dedicated-worker).