You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered: