The new parser for Welcome messages requires the motd field to be present, but this is optional (and in fact the server only includes one if the server operator wants to broadcast a message to all users, like a service interruption announcement or a plea for donations to cover hosting costs). So the serde_json parser needs to make this optional. (in fact pretty much everything in the Welcome message is optional).
This currently causes a panic in core/examples/ws, which connects to a (local) relay and prints the messages that it receives. The motd-less Welcome triggers an error.
The new parser for Welcome messages requires the
motd
field to be present, but this is optional (and in fact the server only includes one if the server operator wants to broadcast a message to all users, like a service interruption announcement or a plea for donations to cover hosting costs). So the serde_json parser needs to make this optional. (in fact pretty much everything in the Welcome message is optional).This currently causes a panic in
core/examples/ws
, which connects to a (local) relay and prints the messages that it receives. The motd-less Welcome triggers an error.