*** id: be1e273d-f738-4fcd-b0fd-0f37f50e4eb7 title: Events slug: /node/reference/task/client/events description: Events available on the Client class. max-toc-depth: 3 ---------------- ## Events ### task.received * **task.received**(`payload`) Emitted whenever a task is received. Your event handler receives the payload. Example: ```javascript const client = new Task.Client(...) client.on('task.received', (payload) => { console.log('Task Received', payload) // Do something with the payload... }) ``` #### Parameters | Name | Type | Description | | :-------- | :------------------------ | :------------------- | | `payload` | `Record` | The message payload. |