The Lattice SDK now supports two new APIs that use server-sent events (SSE) for real-time task monitoring in Lattice:
These new features provide instant updates on task creation, status changes, and completion without the need for polling, and replace the previous polling-based approach:
The StreamTasks API enables centralized monitoring of all tasks in your Lattice environment regardless of the assigned agent.
The StreamAsAgent API replaces the previous ListenAsAgent method, allowing agents to listen for tasks assigned specifically to them using server-sent events.
For more information about task monitoring, see Operate on tasks and Listen for tasks in the Lattice SDK guide.