oberstet / permessage-priority

WebSocket permessage-priority extension
0 stars 0 forks source link

Operation with message compression #3

Open oberstet opened 10 years ago

oberstet commented 10 years ago

We should describe operation with permessage-deflate together with permessage-priority.

http://tools.ietf.org/html/draft-ietf-hybi-permessage-compression-16

oberstet commented 10 years ago

Since frames of messages of different priority may be reordered within endpoints before sending and within intermediaries when forwarding, it seems the way to have permessage-priority work with permessage-deflate is to have a separate compression context per priority class.

Message frames of message of a given priority are never reordered with respect to each other. So essentially, the deflate compression context for that priority class can operate on a stream of messages and frames, as it does when no permessage-priority extension is in use.