RFR JDK-8156742: Miscellaneous WebSocket API improvements
Simone Bordet
simone.bordet at gmail.com
Thu Jun 2 13:09:50 UTC 2016
Hi,
On Thu, Jun 2, 2016 at 2:51 PM, Pavel Rappo <pavel.rappo at oracle.com> wrote:
> Regardless of your API proposal, where did you find that in the RFC?
Duh, I misread the RFC.
It says that *if* there is a body, then there is a code.
However, in 7.1.5:
"If this Close control frame contains no status code, _The WebSocket
Connection Close Code_ is considered to be 1005."
I am not opposed to have a utility method sendClose() parameterless,
but I don't think that it's worth an Optional in onClose(), given the
semantic defined by 7.1.5.
--
Simone Bordet
http://bordet.blogspot.com
---
Finally, no matter how good the architecture and design are,
to deliver bug-free software with optimal performance and reliability,
the implementation technique must be flawless. Victoria Livschitz
More information about the net-dev
mailing list