ably-java
ably-java copied to clipboard
Implement pre-publish checks using Message/PresenceMessage/Annotation size
- We introduced both server side and client side message size checking to avoid sending big messages.
- Related spec PR => https://github.com/ably/specification/pull/331
- Once PR is approved and merged, need to add
sizemethod to each of those message types and throw exception ifsizeexceeds maxMessageSize#TO3l8 before publishing the message.
Related spec points
- RestChannel Publish -> https://sdk.ably.com/builds/ably/specification/main/features/#RSL1i
- RestAnnotation Publish -> https://sdk.ably.com/builds/ably/specification/main/features/#RSAN1a4