What problem does it solve?
When server-side work runs in Webiny (background tasks, bulk actions, hooks), the user who triggered it has no way to know when it finishes or what happened. This Skill shows how to push real-time messages from the API to the Admin app over websockets so the UI can react immediately.
Core Features & Use Cases
- API-side emitting: Inject
WebsocketsSendToIdentityUseCase and IdentityContext to send a namespaced { action, data } message to the identity that triggered the work, with best-effort error handling so websocket failures never break the real task.
- Admin-side handling: Implement a
WebsocketEventHandler that filters incoming messages by action and reacts, for example showing a toast via Notifications.
- Feature registration: Register the handler with
createFeature and RegisterFeature inside an Admin.Extension.
- Use Case: A bulk action processes hundreds of CMS entries; each processed entry sends a websocket message so the Admin displays live progress toasts to the user who started the action.
Quick Start
Ask the AI to add a websocket notification to your Webiny API task that sends a message to the triggering identity and an Admin handler that shows a toast when the message arrives.