Skip to main content

addTask

codebolt.taskplaner.addTask(task: string): Promise<any>
Adds a task using a WebSocket message.

Parameters

NameTypeDescription
taskstringThe task to be added.

Returns:

 Promise<any>
A promise that resolves with the response from the add task event.

Example


await codebolt.taskplaner.addTask("Task Name")

Explaination

The codebolt.taskplaner.addTask function takes a single parameter, task, which is a string representing the task you want to add. This function sends the task to the task planner system using a WebSocket message.

task (string): The description of the task to be added.