[
https://issues.apache.org/jira/browse/CXF-5638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13944933#comment-13944933
]
Sergey Beryozkin commented on CXF-5638:
---------------------------------------
The initial write over the web socket will include the metadata (status +
headers) + data [1].
This can complicate it a bit for JavaScript clients.
Proposal: if the JAX-RS method returns an OK response and it writes structured
events into StreamingOuput then it may make sense to optimize and not write the
metadata. This optimization can be enabled by the system or endpoint contextual
property.
[1] https://cwiki.apache.org/confluence/display/CXF20DOC/WebSocket
> Default WebSocket binding should optionally avoid writing the metadata
> ----------------------------------------------------------------------
>
> Key: CXF-5638
> URL: https://issues.apache.org/jira/browse/CXF-5638
> Project: CXF
> Issue Type: Improvement
> Components: Transports
> Reporter: Sergey Beryozkin
> Priority: Minor
>
--
This message was sent by Atlassian JIRA
(v6.2#6252)