You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, I can not figure out what the appropriate way to add the extensions are. There is some discussion here, but no details on how/if it's possible to get this to work at this time: faye/faye-websocket-ruby#87
The text was updated successfully, but these errors were encountered:
Thank you so much for your interest in iodine and your wish to improve it!
facil.io, which is iodine's engine, doesn't support the permessage-deflate header just yet, though it should be possible to add support.
I do want to support it at some point, but:
I'm not sure that's wise (compression weakens TLS security in HTTP, I'm not sure how it would effect security over WebSocket connections).
I'm not sure the extra CPU load is worth the trouble.
This means that supporting the permessage-deflate extension could only be achieved by authoring your own WebSocket protocol layer (using raw TCP/IP upgrades) or messing around in iodine's C layer code (or, more precisely, the facil.io layer).
I already thought about it a bit, and it shouldn't be that difficult (the deflate functionality might be the hardest part, since it requires a library).
If updating the C layer code, one would need to compress the message and than set the appropriate rsv flags. I guess the code would fit here.
If authoring a Ruby protocol, using raw TCP/IP upgrades with an "upgrade.tcp" handler, than it becomes a ruby world concern, which might make coding easier while slowing up the connection's performance (since parsing will be performed in the Ruby GIL).
I am trying to add support for
permessage-deflate
to do compression of messages sent from server to client.There is an implementation in https://github.com/faye/permessage-deflate-node for https://github.com/faye/websocket-extensions-ruby.
However, I can not figure out what the appropriate way to add the extensions are. There is some discussion here, but no details on how/if it's possible to get this to work at this time: faye/faye-websocket-ruby#87
The text was updated successfully, but these errors were encountered: