Add payload when sending messages to the server.