getMaxMessageSize

getMaxMessageSize(): Integer;

The getMaxMessageSize method of the Connection class returns the maximum message size that can be sent or received at one time.

This method is not defined until the connection has been opened. A value of zero (0) indicates that there is no upper limit to the allowable message size.

The getMaxMessageSize method can be called only when the state is Connected (2).