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

How can we send the same deflated message to multiple clients? #1468

Closed
1 task done
aeisenberg opened this issue Nov 4, 2018 · 2 comments
Closed
1 task done

How can we send the same deflated message to multiple clients? #1468

aeisenberg opened this issue Nov 4, 2018 · 2 comments

Comments

@aeisenberg
Copy link

Hi there, this is a question and not a bug. I'm not sure if this is the appropriate location for this question, so please advise me on the best place to ask.

  • I've searched for any related issues and avoided creating a duplicate issue.

Description

I am looking to enable perMessageDeflate on my server. Our server works by sending the same message to many clients. We want to conserve CPU my deflating the message once and sending it to all clients. Of course, we check that the client supports perMessageDeflate or else we need to send the unzipped variant of the message.

Is this easy or possible using the ws library?

thanks.

Reproducible in:

N/A

Steps to reproduce:

N/A

Expected result:

N/A

Actual result:

N/A

Attachments:

N/A

@lpinca
Copy link
Member

lpinca commented Nov 4, 2018

Each connection uses a different deflate/inflate stream so there is no proper way. See discussion in #617.

@aeisenberg
Copy link
Author

Thanks for the pointer. I'll comment there.

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

No branches or pull requests

2 participants