QWebSocketHandshakeOptions#
Collects options for the WebSocket handshake. More…
New in version 6.4.
Synopsis#
Functions#
def
__eq__
(rhs)def
__ne__
(rhs)def
setSubprotocols
(protocols)def
subprotocols
()def
swap
(other)
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
- class PySide6.QtWebSockets.QWebSocketHandshakeOptions#
PySide6.QtWebSockets.QWebSocketHandshakeOptions(other)
- Parameters
Constructs an empty QWebSocketHandshakeOptions
object.
Constructs a QWebSocketHandshakeOptions
that is a copy of other
.
- PySide6.QtWebSockets.QWebSocketHandshakeOptions.__ne__(rhs)#
- Parameters
- Return type
bool
- PySide6.QtWebSockets.QWebSocketHandshakeOptions.__eq__(rhs)#
- Parameters
- Return type
bool
- PySide6.QtWebSockets.QWebSocketHandshakeOptions.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
- PySide6.QtWebSockets.QWebSocketHandshakeOptions.subprotocols()#
- Return type
list of strings
Returns the list of WebSocket subprotocols to send along with the websocket handshake.
See also
- PySide6.QtWebSockets.QWebSocketHandshakeOptions.swap(other)#
- Parameters