lib/submodules/ably-ruby/lib/ably/rest/channel.rb in ably-rest-1.1.5 vs lib/submodules/ably-ruby/lib/ably/rest/channel.rb in ably-rest-1.1.6
- old
+ new
@@ -50,11 +50,11 @@
# # Publish a single message with (name, data) form
# channel.publish 'click', { x: 1, y: 2 }
#
# # Publish an array of message Hashes
# messages = [
- # { name: 'click', { x: 1, y: 2 } },
- # { name: 'click', { x: 2, y: 3 } }
+ # { name: 'click', data: { x: 1, y: 2 } },
+ # { name: 'click', data: { x: 2, y: 3 } }
# ]
# channel.publish messages
#
# # Publish an array of Ably::Models::Message objects
# messages = [