-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tolerate unrecognized messages/fields gracefully #27
Comments
I'll add: in general, the client needs to ignore unrecognized message types and unknown fields inside known messages. This gives us some room for expansion in the future. The unit tests ought to signal an error if we receive unknown messages, but actual runtime code should ignore them. In Twisted I do this with a |
|
We do not want to error out and exit if the other sends us messages with null fields or optional fields. eg: the message of type
message
has anid
field that may be set tonull
. We would like the deserialization of such messages from binary to json be handled leniently.The text was updated successfully, but these errors were encountered: