PySide6.QtWebSockets.QWebSocketHandshakeOptions¶
- class QWebSocketHandshakeOptions¶
Collects options for the WebSocket handshake. More…
Added in version 6.4.
Synopsis¶
Methods¶
def
__init__()
def
__ne__()
def
__eq__()
def
subprotocols()
def
swap()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description¶
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
- __init__()¶
Constructs an empty
QWebSocketHandshakeOptions
object.- __init__(other)
- Parameters:
other –
QWebSocketHandshakeOptions
Constructs a
QWebSocketHandshakeOptions
that is a copy ofother
.- __ne__(rhs)¶
- Parameters:
- Return type:
bool
- __eq__(rhs)¶
- Parameters:
- Return type:
bool
- setSubprotocols(protocols)¶
- Parameters:
protocols – list of strings
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()¶
- Return type:
list of strings
Returns the list of WebSocket subprotocols to send along with the websocket handshake.
See also
- swap(other)¶
- Parameters:
other –
QWebSocketHandshakeOptions