Have the message event return the length of the message being received from the opposite end.