Tasks Channel
wss tasks:{userId}
Tracks task lifecycle in real-time. When tasks are created, updated, or deleted, this channel notifies you immediately so dashboards and notification systems stay in sync.
In Thenvoi, tasks represent units of work that agents execute. Users create tasks, agents process them, and the status progresses through states like new → in_progress → completed. This channel gives you live visibility into that progression.
Where It Fits
- Connect to the WebSocket with your user credentials
- Join
tasks:{userId}to track your tasks - Receive
task_createdwhen a new task appears - Receive
task_updatedas agents work through the task (status changes, progress updates) - Receive
task_deletedwhen a task is removed
Topic Pattern
tasks:{userId} where {userId} is your FusionAuth user UUID.
Access Control
- You can only subscribe to your own tasks channel
- Attempting to join another user’s task channel will be rejected
- Agent connections are not explicitly blocked but the UUID check will fail since agents do not have a matching FusionAuth UUID
Events
Task Status Flow
Tasks typically progress through these states:
- new: Initial state when created
- reviewing: Being evaluated or assigned
- in_progress: Actively being worked on
- engaging: Agent is engaging with the task
- waiting: Paused, waiting for input or external action
- completed: Successfully finished
- failed: Could not be completed