2026-01-30 03:15:10 +01:00
|
|
|
import OpenClawProtocol
|
2025-12-12 22:06:40 +00:00
|
|
|
|
|
|
|
|
/// Server-push messages from the gateway websocket.
|
|
|
|
|
///
|
|
|
|
|
/// This is the in-process replacement for the legacy `NotificationCenter` fan-out.
|
2026-01-19 05:44:36 +00:00
|
|
|
public enum GatewayPush: Sendable {
|
2025-12-12 22:06:40 +00:00
|
|
|
/// A full snapshot that arrives on connect (or reconnect).
|
|
|
|
|
case snapshot(HelloOk)
|
|
|
|
|
/// A server push event frame.
|
|
|
|
|
case event(EventFrame)
|
|
|
|
|
/// A detected sequence gap (`expected...received`) for event frames.
|
|
|
|
|
case seqGap(expected: Int, received: Int)
|
|
|
|
|
}
|