docs(rpc): clarify unknown-frame fallback

This commit is contained in:
Wolfgang Schoenberger
2026-07-30 06:39:27 -07:00
parent 0f033ed706
commit 88cb0729b0
+3
View File
@@ -1904,6 +1904,9 @@ class RpcClient:
notification = parse_notification(payload)
listener_notification = parse_notification(payload)
except (TypeError, ValueError) as exc:
# Protocol drift must not terminate the reader. This also
# demotes parser defects to UnknownNotification; consumers
# that need visibility should register an unknown listener.
notification = UnknownNotification(
_clone_json_object(payload), parse_error=str(exc)
)