ably-java
ably-java copied to clipboard
Enforce maximum message size (RSL1i)
We should implement the spec RSL1i which constrains the maximum size of a message. There are a few things to do:
- set the
maxMessageSizedefault value to 64 KiB (TO3l8) - allow specifying the
maxMessageSizevia theClientOptions - check if the
maxMessageSizeis exceeded and throw an appropriate error in case it is
Note: It seems that we have the maxMessageSize in the code already so it should be a good starting point.