created struct to serialize message update and send over socket