ably-java icon indicating copy to clipboard operation
ably-java copied to clipboard

Implement pre-publish checks using Message/PresenceMessage/Annotation size

Open sacOO7 opened this issue 8 months ago • 1 comments

  • 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 size method to each of those message types and throw exception if size exceeds maxMessageSize#TO3l8 before publishing the message.

┆Issue is synchronized with this Jira Task by Unito

sacOO7 avatar Jun 11 '25 14:06 sacOO7

Related spec points

  1. RestChannel Publish -> https://sdk.ably.com/builds/ably/specification/main/features/#RSL1i
  2. RestAnnotation Publish -> https://sdk.ably.com/builds/ably/specification/main/features/#RSAN1a4

sacOO7 avatar Jun 11 '25 14:06 sacOO7