The postMessage() method of the Worker interface sends a message to the worker.
postMessage()
MDN Reference