Process a message after it's received.
If the payload isn't changed the given payload
is just returned, otherwise [[email protected]] is called on the given
payload
and a new [[email protected]] is returned with the new data.
Extensions using reserved bits of the header will reset them in header
.
this | |
header |
the message header |
payload |
the payload data |
the message payload data, or null in case of error |