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

Support delta compression #282

Merged
merged 3 commits into from
May 19, 2024
Merged

Support delta compression #282

merged 3 commits into from
May 19, 2024

Conversation

FZambia
Copy link
Member

@FZambia FZambia commented May 7, 2024

Introduce a way to set new Subscription delta option:

const sub = centrifuge.newSubscription(channel, {
  delta: 'fossil'
});

Option delta can only have fossil value now (delta compression based on Fossil algorithm).

When set, client will try to negotiate delta compression in channel with a server. If server allows this delta type – messages in channel MAY be delta-compressed. Whether messages are delta compressed or not depends on server publishing logic.

@FZambia FZambia merged commit 549588a into master May 19, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant