No, websocat currently does not correctly perform the close handshake. It does not reply to a close frame it receives. I opened an issue for that: https://github.com/vi/websocat/issues/269