-
Notifications
You must be signed in to change notification settings - Fork 114
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
Confusion about perMessageDeflate in Readme #116
Comments
this is the same of |
The extension has been added in A lot of modules now assume that permessage-deflate is enabled so we avoided adding an unnecessary breaking change in permessage-deflate basically kills That said, you should use permessage-deflate if you want to minimize the amount of data transmitted over the network. Bandwidth consumption is not free. |
i see and need a recommendation from you if you don't mind? should i enable or disable in www.videomail.io i am sending image frames through a pipe over this websocket-stream to the server at an FPS of 15. each frame is about 7kB. |
Most services make you pay only for outgoing bandwidth and I assume that those image frames are already compressed so I think you should definitely disable permessage-deflate. Anyway I would check what's the difference with permessage-deflate on and off, calculate the costs and decide based on this info. |
i'd like to clarify few things here. obviously it is documented that you can set the but when you are using the native implementation
then this option is never passed on because its native implementation does not support but according to this rfc this option should be embraced: all that makes me question how i really can disable perMessageDeflate at all? |
@binarykitchen the extension is negotiated so you can just disable it on the server. The client will only use it if it's also supported on the server. It can be disabled on the client because |
ah, never mind, i figured it out. was using the wrong constructor :) |
When you recommend in your Readme that it's recommended to set
perMessageDeflate
to false for best throughput, then why is its default set to true?Any reasons for this? And on a side note, I wonder when it's not recommended to set it to true?
The text was updated successfully, but these errors were encountered: