dhruvbird/node-xmpp-bosh — comment on commit 9f0b359c4349d301a15e67d5fefc58a371b120e2
File: src/session.js line 1015
By dhruvbird:

I think there was a flow that each packet _had_ to pass through at some point in time. For example for queuing responses, etc... I don't recall - this was done to ensure that each packet _always_ goes through that flow. I am not familiar (after the refactoring) whether that still holds. Best if you prove the correctness.