Split messages based on max frame size.