QtWebSocket does not have API to set header fields for connection. This can be used for authorization and other things. RFC6455 has this:
12. The request MAY include any other header fields, for example,
cookies [RFC6265] and/or authentication-related header fields
such as the |Authorization| header field [RFC2616], which are
processed according to documents that define them.