Ingot.Progress (Ingot v0.1.0)
View SourceManages broadcasting of progress updates via Phoenix PubSub.
This module provides functions to broadcast labeling events to all connected LiveView processes for real-time progress updates.
Summary
Functions
Broadcast that a label was completed.
Broadcast queue statistics update.
Broadcast that a user joined the labeling interface.
Broadcast that a user left the labeling interface.
Subscribe to all progress events.
Subscribe to label completion events.
Subscribe to queue updates.
Subscribe to user join/leave events.
Functions
Broadcast that a label was completed.
Examples
iex> Progress.broadcast_label_completed("session-123")
:ok
Broadcast queue statistics update.
Examples
iex> Progress.broadcast_queue_update(%{remaining: 453})
:ok
Broadcast that a user joined the labeling interface.
Examples
iex> Progress.broadcast_user_joined("user-123")
:ok
Broadcast that a user left the labeling interface.
Examples
iex> Progress.broadcast_user_left("user-123")
:ok
Subscribe to all progress events.
Subscribe to label completion events.
Subscribe to queue updates.
Subscribe to user join/leave events.