long polling - How do I get the response object in a bayeux server response in CometD -


i trying customize response of bayeux server response can add header parameters before sending ui. able add header values in request using customize method in longpollingtransport. needed.

cometd tries abstract away underlying protocol.

when use websocket, example, concepts of request headers , response headers not exist anymore.

as such, way better if have additional information send client, additional information should go in cometd messages rather in http headers.

furthermore, when using http transport, single http response may carry multiple messages, not clear cometd message additional information refer to.

your question generic (does not why want add headers, not specific header, etc.) precise answer, bottom line typically don't want use http headers cometd.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -