write the Sec-WebSocket-Protocol header conditionally (if codec is set)