W3CWebSocket: fix issue and improve doc

Two commits, one fixing a bug and other improving the documentation.