Open richiejarvis opened 2 years ago
➤ Automation for Jira commented:
The link to the corresponding Jira issue is https://ably.atlassian.net/browse/ECO-4057
I believe that this is working as intended — I think that publish
returns an EventMachine Deferrable
, which seems something like a JavaScript promise. To find out about the success or failure of this operation, you populate the deferrable’s callback
and errback
properties with a callback.
I tried setting the errback
property in the provided script, and the publish operation fails with the error "Message size exceeded 65536 bytes."
It wasn't clear to me that the callback
/ errback
mechanism is how the library communicates success and failure, though, and the README
doesn't show an example of setting these properties for a publish operation. I haven't worked with EventMachine before so I don’t know whether this would be obvious to someone who uses it. I’m going to tag this issue as a documentation one.
Hi Team,
I was testing some ruby large message issues, and was surprised that a message that is too large doesn't output any errors or debug information to say why the message was rejected. Tested using https://github.com/ably/ably-ruby/releases/tag/v1.2.3
Terminal output:
Code used attached. publish-subscribe-massive-message.rb.zip
┆Issue is synchronized with this Jira Task by Unito