-
Notifications
You must be signed in to change notification settings - Fork 376
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stream-management: Send ack on close (#1059)
- Loading branch information
Showing
5 changed files
with
89 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ Supports Node.js and browsers. | |
|
||
## Install | ||
|
||
``` | ||
```sh | ||
npm install @xmpp/middleware | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,19 @@ If the session fails to resume, entity will fallback to regular session establis | |
- Automatically responds to acks. | ||
- Periodically request acks. | ||
- If server fails to respond, triggers a reconnect. | ||
- On reconnect retry sending the queue | ||
|
||
When a stanza is re-sent, a [delay element](https://xmpp.org/extensions/xep-0203.html) will be added to it. | ||
|
||
- `from` client jid | ||
- `stamp` [date/time](https://xmpp.org/extensions/xep-0082.html) at which the stanza was meant to be sent | ||
|
||
```xml | ||
<delay xmlns="urn:xmpp:delay" | ||
from="[email protected]/resource" | ||
stamp="1990-01-01T00:00:00Z" | ||
/> | ||
``` | ||
|
||
## Events | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters