send
send
Constsend(params):Promise<void>
Send a job to your Task Client in a specific topic.
Parameters
params
Object containing the parameters of the method.
topic
Topic to send the task to. Previously known as "context" or "contexts". Can also use params.topics.
message
Message to send.
project
SignalWire project id, e.g. a10d8a9f-2166-4e82-56ff-118bc3a4840f.
token
SignalWire project token, e.g. PT9e5660c101...a360079c9.
Returns
Promise<void>
Example
Sending a task with a message to then make an outbound Call. Please note that the call is not performed automatically: your Task.Client gives you back your payload, which you should interpret by your own custom logic.