Notifications are newline terminated strings sent from clients to the Pedro server. A valid notification is a string that represents an atom, a list or a compound Pedro term (with a following newline). The Pedro server reads characters from a client until it gets a newline. The server will then attempt to parse the characters up to (but not including) the newline as a compound Pedro term. If this succeeds then the server processes the notification term; otherwise the string is ignored.
Examples (trailing newline removed):
info(fred, 42, "some string")Invalid (not compound, atom or list):
XInvalid (does not parse):
The server will acknowledge the client with a 1 if the notification is valid and a 0 otherwise.