|Import Statement:||import QtWebSockets 1.13|
WebSockets is a web technology providing full-duplex communications channels over a single TCP connection. The WebSocket protocol was standardized by the IETF as RFC 6455 in 2011.
active : bool
When set to true, a connection is made to the server with the given url. When set to false, the connection is closed. The default value is false.
errorString : QString
Contains a description of the last error that occurred. When no error occurrred, this string is empty.
status : Status
Status of the WebSocket.
The status can have the following values:
url : QUrl
Server url to connect to. The url must have one of 2 schemes: ws:// or wss://. When not supplied, then ws:// is used.
This signal is emitted when a binary message is received. message contains the bytes received.
This signal was introduced in Qt 5.8.
This signal is emitted when the status of the WebSocket changes. The status argument provides the current status.
See also WebSocket::status.
This signal is emitted when a text message is received. message contains the bytes received.
Sends the parameter message to the server.
This method was introduced in Qt 5.8.
Sends message to the server.
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.