Collects options for the WebSocket handshake. More...
Header: | #include <QWebSocketHandshakeOptions> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS WebSockets) target_link_libraries(mytarget PRIVATE Qt6::WebSockets) |
qmake: | QT += websockets |
Since: | Qt 6.4 |
QWebSocketHandshakeOptions(QWebSocketHandshakeOptions &&other) | |
QWebSocketHandshakeOptions(const QWebSocketHandshakeOptions &other) | |
QWebSocketHandshakeOptions() | |
QWebSocketHandshakeOptions & | operator=(const QWebSocketHandshakeOptions &other) |
QWebSocketHandshakeOptions & | operator=(QWebSocketHandshakeOptions &&other) |
~QWebSocketHandshakeOptions() | |
void | setSubprotocols(const QStringList &protocols) |
QStringList | subprotocols() const |
bool | operator!=(const QWebSocketHandshakeOptions &lhs, const QWebSocketHandshakeOptions &rhs) |
bool | operator==(const QWebSocketHandshakeOptions &lhs, const QWebSocketHandshakeOptions &rhs) |
QWebSocketHandshakeOptions collects options that are passed along to the WebSocket handshake, such as WebSocket subprotocols and WebSocket Extensions.
At the moment, only WebSocket subprotocols are supported.
See also QWebSocket::open().
Constructs a QWebSocketHandshakeOptions that is moved from other.
Constructs a QWebSocketHandshakeOptions that is a copy of other.
Constructs an empty QWebSocketHandshakeOptions object.
Assigns other to this object.
Moves other to this object.
Destroys this object.
Sets the list of WebSocket subprotocols protocols to send along with the websocket handshake.
WebSocket subprotocol names may only consist of those US-ASCII characters that are in the unreserved group. Invalid protocol names will not be included in the handshake.
See also subprotocols().
Returns the list of WebSocket subprotocols to send along with the websocket handshake.
See also setSubprotocols().
Compares lhs for equality with rhs.
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: