Added an "action" pair to the server message JSON to avoid unnecessary bad code