Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
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
2 changes: 2 additions & 0 deletions src/bosh.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ class Bosh {

const body = this._buildBody().attrs({
'to': this._conn.domain,
...(this._conn.service.startsWith("https://") ? { 'from': this._conn.jid } : {}),
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'xml:lang': 'en',
'wait': this.wait,
'hold': this.hold,
Expand Down Expand Up @@ -451,6 +452,7 @@ class Bosh {
if (data[i] === 'restart') {
body.attrs({
'to': this._conn.domain,
...(this._conn.service.startsWith("https://") ? { 'from': this._conn.jid } : {}),
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'xml:lang': 'en',
'xmpp:restart': 'true',
'xmlns:xmpp': NS.BOSH,
Expand Down
Loading