Hi, On Thu, Jun 2, 2016 at 2:51 PM, Pavel Rappo <pavel.ra...@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