Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.0 release #260

Merged
merged 19 commits into from
Mar 8, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
0f56cc7
Bump working 0.9 version to 1.0 release version
mattheworiordan Jan 20, 2017
31368de
api: Lock into a major version for Javascript always
mattheworiordan Jan 20, 2017
68c8f8c
api: Update Java references to 1.0
mattheworiordan Jan 20, 2017
9c157ce
api: Enable Ruby, Java, iOS for v1.0
mattheworiordan Jan 20, 2017
86e7e3e
spec: Update 0.8 to 1.0 diff
mattheworiordan Jan 20, 2017
70b0ada
spec: Listener issue for Presence was not fixed
mattheworiordan Jan 23, 2017
df664af
spec: Indentation fix
mattheworiordan Jan 23, 2017
144f840
Fix broken spec ref
mattheworiordan Feb 14, 2017
d958326
spec: Clarify how ID is constructed for Realtime messages
mattheworiordan Feb 16, 2017
5d87c9b
spec: Fix mismatch of HTTP retry and request timeouts
mattheworiordan Feb 22, 2017
b3daed9
api: Ensure queue docs make it clear envelopes contain only one messa…
mattheworiordan Mar 7, 2017
5ef3efe
tutorials: Use 1.* JS
mattheworiordan Mar 8, 2017
ebc3855
api: Fix incorrect old reference to non-specific version from CDN
mattheworiordan Mar 8, 2017
a13ca5b
api: Fix LogLevel in .NET docs
mattheworiordan Mar 8, 2017
bbe732d
api: Make it clear which operations implicitly attach channels
mattheworiordan Mar 8, 2017
9216cca
api: Various .NET inconsistencies
mattheworiordan Mar 8, 2017
29156f0
api: C# ConnectionStateChange object incorrectly named
mattheworiordan Mar 8, 2017
878cb4b
api: Java documentation fixes
mattheworiordan Mar 8, 2017
155fa73
api: Updates for Ably-iOS library
mattheworiordan Mar 8, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 21 additions & 21 deletions content/client-lib-development-guide/features.textile

Large diffs are not rendered by default.

1,055 changes: 1,055 additions & 0 deletions content/client-lib-development-guide/versions/features-0-8__1-0.diff

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/code/authentication/auth-callback.code
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ $('input#connect').on('click', function() {
[--- /Javascript ---]

[--- HTML ---]
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min.js"></script>
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min-1.js"></script>
<script src="//jsbin-files.ably.io/js/jquery-1.8.3.min.js"></script>
<h1>Ably authCallback example</h1>

Expand Down
2 changes: 1 addition & 1 deletion content/code/authentication/basic-auth.code
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ $('input#connect').on('click', function() {
[--- /Javascript ---]

[--- HTML ---]
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min.js"></script>
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min-1.js"></script>
<script src="//jsbin-files.ably.io/js/jquery-1.8.3.min.js"></script>
<h1>Ably Basic Auth Example</h1>

Expand Down
2 changes: 1 addition & 1 deletion content/code/authentication/capabilities.code
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ function scrollBottom() {
[--- /Javascript ---]

[--- HTML ---]
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min.js"></script>
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min-1.js"></script>
<script src="//jsbin-files.ably.io/js/jquery-1.8.3.min.js"></script>
<h1>Ably Capabilities Example</h1>

Expand Down
2 changes: 1 addition & 1 deletion content/code/authentication/create-token-request.code
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ $('input#connect').on('click', function() {
[--- /Javascript ---]

[--- HTML ---]
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min.js"></script>
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min-1.js"></script>
<script src="//jsbin-files.ably.io/js/jquery-1.8.3.min.js"></script>
<h1>Ably Signed Token Request Example</h1>

Expand Down
2 changes: 1 addition & 1 deletion content/code/authentication/request-token.code
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ $('input#connect').on('click', function() {
[--- /Javascript ---]

[--- HTML ---]
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min.js"></script>
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min-1.js"></script>
<script src="//jsbin-files.ably.io/js/jquery-1.8.3.min.js"></script>
<h1>Ably Request Token Example</h1>

Expand Down
2 changes: 1 addition & 1 deletion content/code/client-lib-development-guide/example.code
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ably.connection.on('connected', function() {
[--- /Javascript ---]

[--- HTML ---]
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min.js"></script>
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min-1.js"></script>
<h1>Ably Quickstart Connect Example</h1>
[--- /HTML ---]

Expand Down
2 changes: 1 addition & 1 deletion content/code/quick-start-guide/connect.code
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ably.connection.on('connected', function() {
[--- /Javascript ---]

[--- HTML ---]
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min.js"></script>
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min-1.js"></script>
<script src="//jsbin-files.ably.io/js/jquery-1.8.3.min.js"></script>
<h1>Ably Quickstart Connect Example</h1>
<div id="message" style="color: green"></div>
Expand Down
2 changes: 1 addition & 1 deletion content/code/quick-start-guide/send-message.code
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ $('input[type=button]').on('click', function() {

[--- HTML ---]
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min.js"></script>
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min-1.js"></script>
<h1>Ably Quickstart Publish &amp; Subscribe Example</h1>

<input type="button" value="Connecting...">
Expand Down
2 changes: 1 addition & 1 deletion content/code/reactor/webhook-hmac-sha-256.code
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ $('#check-hmac-btn').on('click', function() {
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.2/rollups/hmac-sha256.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.2/components/enc-base64.js"></script>
<script src="//cdn.ably.io/lib/ably.js"></script>
<script src="//cdn.ably.io/lib/ably-1.js"></script>
</head>
<body>
<h1><a href="https://www.ably.io" target="_blank"><img src="/images/favicon.png">Ably realtime</a> WebHook HMAC validation example</h1>
Expand Down
2 changes: 1 addition & 1 deletion content/code/realtime/auth-client-id.code
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function show(status, color) {
[--- /Javascript ---]

[--- HTML ---]
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min.js"></script>
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min-1.js"></script>
<script src="//jsbin-files.ably.io/js/jquery-1.8.3.min.js"></script>
<h1>Ably Auth Client ID Example</h1>

Expand Down
2 changes: 1 addition & 1 deletion content/code/realtime/auth-token-callback.code
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function show(status, color) {
[--- /Javascript ---]

[--- HTML ---]
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min.js"></script>
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min-1.js"></script>
<script src="//jsbin-files.ably.io/js/jquery-1.8.3.min.js"></script>
<h1>Ably Auth Token Example</h1>

Expand Down
2 changes: 1 addition & 1 deletion content/code/realtime/channel-encrypted.code
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function arrayBufferToHex(arrayBuffer) {
[--- /Javascript ---]

[--- HTML ---]
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min.js"></script>
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min-1.js"></script>
<script src="//jsbin-files.ably.io/js/jquery-1.8.3.min.js"></script>
<h1>Ably Encrypted Channel Example</h1>

Expand Down
2 changes: 1 addition & 1 deletion content/code/realtime/channel-history-until-attach.code
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ $('input#history').on('click', attachAndGetHistory);
[--- /Javascript ---]

[--- HTML ---]
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min.js"></script>
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min-1.js"></script>
<script src="//jsbin-files.ably.io/js/jquery-1.8.3.min.js"></script>
<h1>Ably Channel History Example</h1>

Expand Down
2 changes: 1 addition & 1 deletion content/code/realtime/channel-history.code
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ $('input#history').on('click', getHistory);
[--- /Javascript ---]

[--- HTML ---]
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min.js"></script>
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min-1.js"></script>
<script src="//jsbin-files.ably.io/js/jquery-1.8.3.min.js"></script>
<h1>Ably Channel History Example</h1>

Expand Down
2 changes: 1 addition & 1 deletion content/code/realtime/channel-implicit.code
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function show(status, color) {
[--- /Javascript ---]

[--- HTML ---]
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min.js"></script>
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min-1.js"></script>
<script src="//jsbin-files.ably.io/js/jquery-1.8.3.min.js"></script>
<h1>Ably Implicit Attach Channel Example</h1>

Expand Down
2 changes: 1 addition & 1 deletion content/code/realtime/channel-publish.code
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function show(status, color) {
[--- /Javascript ---]

[--- HTML ---]
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min.js"></script>
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min-1.js"></script>
<script src="//jsbin-files.ably.io/js/jquery-1.8.3.min.js"></script>
<h1>Ably Channel Example</h1>

Expand Down
2 changes: 1 addition & 1 deletion content/code/realtime/channel-states.code
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function logState(currentState) {

[--- HTML ---]
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min.js"></script>
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min-1.js"></script>
<h1>Ably Realtime Channel States Example</h1>

<h2>Channel state history</h2>
Expand Down
2 changes: 1 addition & 1 deletion content/code/realtime/channel.code
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function show(status, color) {
[--- /Javascript ---]

[--- HTML ---]
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min.js"></script>
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min-1.js"></script>
<script src="//jsbin-files.ably.io/js/jquery-1.8.3.min.js"></script>
<h1>Ably Channel Example</h1>

Expand Down
2 changes: 1 addition & 1 deletion content/code/realtime/connection-states.code
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function logState(currentState, stateChangeObj) {

[--- HTML ---]
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min.js"></script>
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min-1.js"></script>
<h1>Ably Realtime Connection States Example</h1>

<h2>Connection state history</h2>
Expand Down
2 changes: 1 addition & 1 deletion content/code/realtime/connection.code
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function show(status, color) {
[--- /Javascript ---]

[--- HTML ---]
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min.js"></script>
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min-1.js"></script>
<script src="//jsbin-files.ably.io/js/jquery-1.8.3.min.js"></script>
<h1>Ably Connection Example</h1>

Expand Down
2 changes: 1 addition & 1 deletion content/code/realtime/presence-events.code
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function append(message, color) {
[--- /Javascript ---]

[--- HTML ---]
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min.js"></script>
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min-1.js"></script>
<script src="//jsbin-files.ably.io/js/jquery-1.8.3.min.js"></script>
<h1>Ably Presence Example</h1>

Expand Down
2 changes: 1 addition & 1 deletion content/code/realtime/presence-multiple-client-id.code
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function show(status, color) {
[--- /Javascript ---]

[--- HTML ---]
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min.js"></script>
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min-1.js"></script>
<script src="//jsbin-files.ably.io/js/jquery-1.8.3.min.js"></script>
<h1>Ably Presence Example</h1>

Expand Down
2 changes: 1 addition & 1 deletion content/code/realtime/presence-simple.code
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function show(status, color) {
[--- /Javascript ---]

[--- HTML ---]
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min.js"></script>
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min-1.js"></script>
<script src="//jsbin-files.ably.io/js/jquery-1.8.3.min.js"></script>
<h1>Ably Presence Example</h1>

Expand Down
2 changes: 1 addition & 1 deletion content/code/realtime/stats.code
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function show(status, color) {
[--- /Javascript ---]

[--- HTML ---]
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min.js"></script>
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min-1.js"></script>
<script src="//jsbin-files.ably.io/js/jquery-1.8.3.min.js"></script>
<h1>Ably Stats Example</h1>

Expand Down
2 changes: 1 addition & 1 deletion content/code/rest/channel-history.code
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ $('input#history').on('click', getHistory);
[--- /Javascript ---]

[--- HTML ---]
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min.js"></script>
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min-1.js"></script>
<script src="//jsbin-files.ably.io/js/jquery-1.8.3.min.js"></script>
<h1>Ably REST History Example</h1>

Expand Down
2 changes: 1 addition & 1 deletion content/code/rest/channel-publish.code
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function show(status, color) {
[--- /Javascript ---]

[--- HTML ---]
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min.js"></script>
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min-1.js"></script>
<script src="//jsbin-files.ably.io/js/jquery-1.8.3.min.js"></script>
<h1>Ably REST Publish Example</h1>

Expand Down
2 changes: 1 addition & 1 deletion content/code/rest/publish-on-behalf-of-client.code
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function show(status, color) {
[--- /Javascript ---]

[--- HTML ---]
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min.js"></script>
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min-1.js"></script>
<script src="//jsbin-files.ably.io/js/jquery-1.8.3.min.js"></script>
<h1>Ably: Publishing over REST on behalf of a Realtime client example</h1>

Expand Down
2 changes: 1 addition & 1 deletion content/code/rest/stats.code
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function show(status, color) {
[--- /Javascript ---]

[--- HTML ---]
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min.js"></script>
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min-1.js"></script>
<script src="//jsbin-files.ably.io/js/jquery-1.8.3.min.js"></script>
<h1>Ably Stats Example</h1>

Expand Down
2 changes: 1 addition & 1 deletion content/code/website-examples/angular-todo.code
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ function toDoEntry() {
<head>
<script src="//jsbin-files.ably.io/js/jquery-1.8.3.min.js"></script>
<script src="//jsbin-files.ably.io/js/underscore-min.js"></script>
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min.js"></script>
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min-1.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.min.js"></script>
<meta charset=utf-8 />
</head>
Expand Down
2 changes: 1 addition & 1 deletion content/code/website-examples/backbone-todo.code
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ $(function() {
<script src="//jsbin-files.ably.io/js/underscore-min.js"></script>
<script src="//jsbin-files.ably.io/js/backbone-min.js"></script>
<script src="//jsbin-files.ably.io/js/moment.min.js"></script>
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min.js"></script>
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min-1.js"></script>
<meta charset=utf-8 />
</head>

Expand Down
2 changes: 1 addition & 1 deletion content/code/website-examples/ember-todo.code
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ App.CreateToDoButtonView = Ember.Button.extend({
<script src="//jsbin-files.ably.io/js/jquery-1.8.3.min.js"></script>
<script src="//jsbin-files.ably.io/js/ember-0.9.8.1.min.js"></script>
<script src="//jsbin-files.ably.io/js/moment.min.js"></script>
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min.js"></script>
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min-1.js"></script>
<meta charset=utf-8 />
</head>

Expand Down
2 changes: 1 addition & 1 deletion content/code/website-examples/home-page.code
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function show(status) {
[--- /Javascript ---]

[--- HTML ---]
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min.js"></script>
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min-1.js"></script>
<script src="//jsbin-files.ably.io/js/jquery-1.8.3.min.js"></script>
<h1>Ably: Simple API Example</h1>

Expand Down
2 changes: 1 addition & 1 deletion content/code/website-examples/simple-chat.code.erb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ $(function() {
<head>
<script src="//jsbin-files.ably.io/js/jquery-1.8.3.min.js"></script>
<script src="//jsbin-files.ably.io/js/moment.min.js"></script>
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min.js"></script>
<script type="text/javascript" src="//cdn.ably.io/lib/ably.min-1.js"></script>
<meta charset=utf-8 />
</head>
<body>
Expand Down
25 changes: 20 additions & 5 deletions content/general/queues.textile
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ bc[sh]. amqp-consume --queue-name [Name] \
--host [Server endpoint host] --port [Server endpoint port] \
--ssl --vhost shared --creds [your API key]

Whenever a message is published to the queue you are subscribing to, the amqp-consume tool will output the message details such as:
Whenever a message is published to the queue you are subscribing to, the @amqp-consume@ tool will output the message details such as:

```[sh]
Message received
Expand All @@ -130,13 +130,18 @@ Data: {
"messageId":"vjzxPR-XK3:3",
"messages":[
{
"id":"vjzxPR-XK3:3:0","name":"event","connectionId":"vjzxPR-XK3",
"timestamp":1485914937909,"data":"payload"
"id":"vjzxPR-XK3:3:0",
"name":"event",
"connectionId":"vjzxPR-XK3",
"timestamp":1485914937909,
"data":"payload"
}
]
}
```

_Please note that the @messages@ attribute is an @Array@ so that future envelope options may allow messages to be bundled into a single envelope ("WebHooks":/general/webhooks currently bundle messages). However, with the current queue rule design, an envelope will only ever contain one message._

h3. Consuming messages from queues

Consuming messages from Ably Reactor Message Queues is mostly the same as consuming from any other queue supporting AMQP or STOMP protocols. However, there a few tips below to avoid common pitfalls.
Expand Down Expand Up @@ -176,6 +181,11 @@ amqp.connect(url, (err, conn) => {
/* Wait for messages published to the Ably Reactor queue */
ch.consume('UATwBQ:example-queue', (item) => {
let decodedEnvelope = JSON.parse(item.content)

/* The envelope messages attribute will only contain one message. However,
in future versions, we may allow optional bundling of messages into a
single queue message and as such this attribute is an Array to support
that in future */
let messages = Ably.Realtime.Message.fromEncodedArray(decodedEnvelope.messages)
messages.forEach((message) => {
actionMessage(message)
Expand Down Expand Up @@ -245,6 +255,11 @@ Stompit.connect(connectOptions, (error, client) => {
if (err) { return handleError(err) }

let decodedEnvelope = JSON.parse(item.content)

/* The envelope messages attribute will only contain one message. However,
in future versions, we may allow optional bundling of messages into a
single queue message and as such this attribute is an Array to support
that in future */
let messages = Ably.Realtime.Message.fromEncodedArray(decodedEnvelope.messages)
messages.forEach((message) => {
actionMessage(message)
Expand Down Expand Up @@ -299,7 +314,7 @@ h5. Enveloped message example
}
```

Please note that the @messages@ attribute is an array of messages so that future envelope options may allow messages to be bundled into a single envelope (like "WebHooks":/general/webhooks). However, with the current queue rule design, an envelope will only ever contain one message.
_Please note that the @messages@ attribute is an @Array@ so that future envelope options may allow messages to be bundled into a single envelope ("WebHooks":/general/webhooks currently bundle messages). However, with the current queue rule design, an envelope will only ever contain one message._

h5. Non-enveloped message example

Expand Down Expand Up @@ -348,7 +363,7 @@ h5. Enveloped presence message example
}
```

Please note that the @presence@ attribute is an array of presence messages so that infuture envelope options may allow presence messages to be bundled into a single envelope (like "WebHooks":/general/webhooks). However, with the current queue rule design, an envelope will only ever contain one presence message.
_Please note that the @presence@ attribute is an @Array@ so that future envelope options may allow presence messages to be bundled into a single envelope ("WebHooks":/general/webhooks currently bundle messages). However, with the current queue rule design, an envelope will only ever contain one presence message._

h5. Non-enveloped presence message example

Expand Down
Loading