|qmake:||QT += webchannel|
|virtual void||sendMessage(const QJsonObject &message) = 0|
|void||messageReceived(const QJsonObject &message, QWebChannelAbstractTransport *transport)|
Communication channel between the C++ QWebChannel server and a HTML/JS client.
Users of the QWebChannel must implement this interface and connect instances of it to the QWebChannel server for every client that should be connected to the QWebChannel. The Qt WebChannel Standalone Example shows how this can be done using Qt WebSockets.
Note: The JSON message protocol is considered internal and might change over time.
See also Qt WebChannel Standalone Example.
Constructs a transport object with the given parent.
Destroys the transport object.
[signal]void QWebChannelAbstractTransport::messageReceived(const QJsonObject &message, QWebChannelAbstractTransport *transport)
This signal must be emitted when a new JSON message was received from the remote client. The transport argument should be set to this transport object.
[pure virtual slot]void QWebChannelAbstractTransport::sendMessage(const QJsonObject &message)
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: