When to Unsubscribe
| Scenario | Action |
|---|---|
| Cleanup on shutdown | Unsubscribe before closing connection |
| Dynamic subscriptions | Remove handlers no longer needed |
| Memory management | Prevent handler leaks in long-running processes |
Behavior
- Removes event handler from client
- Stops receiving notifications for that event/step combination
- Server stops sending notifications if no active subscriptions remain
- Safe to call multiple times (idempotent)