# Worker.onMessage(function callback)
Listens on the event that the main thread/worker thread sends a message to the current thread.
# Parameters
# function callback
The callback function for the event that the main thread/worker thread sends a message to the current thread.
# Parameters
# Object res
Property | Type | Description |
---|---|---|
message | Object | The message sent by the main thread/worker thread to the current thread |