Skip to content

Commit

Permalink
feat(compress): change compression order from 5 to 101 (after SASL) a…
Browse files Browse the repository at this point in the history
…nd handle compression more properly
  • Loading branch information
vsevex committed Mar 6, 2024
1 parent 00aa093 commit c2ab73f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/src/plugins/compression/compression.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class Compression extends PluginBase {
'compression',
(stanza) => _handleCompression(stanza as StreamFeatures),
restart: true,
order: 5,
order: 101,
);
}

Expand All @@ -60,8 +60,9 @@ class Compression extends PluginBase {

void _handleCompressed(StanzaBase stanza) {
base.features.add('compression');
Log.instance.debug('Stream Compressed!!!');
// base.transport.streamCompressed = true;
Log.instance.info('Stream Compressed!!!');
base.transport.streamCompressed = true;
base.transport.sendRaw(base.transport.streamHeader);
}

/// Do not implement.
Expand Down

0 comments on commit c2ab73f

Please sign in to comment.