Skip to content

Commit

Permalink
Explanation of setting stream from
Browse files Browse the repository at this point in the history
  • Loading branch information
singpolyma committed Dec 18, 2024
1 parent 675aab9 commit 30ca0a7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/connection/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,9 @@ class Connection extends EventEmitter {
this.socket.secure() &&
(this.streamFrom || this.jid)
) {
// When the stream is secure there is no leak to setting the stream from
// This is suggested in general and in required for FAST implementations
// in particular
headerElement.attrs.from = (this.streamFrom || this.jid).toString();
}
headerElement.attrs["xml:lang"] = lang;
Expand Down

0 comments on commit 30ca0a7

Please sign in to comment.