summaryrefslogtreecommitdiffstats
path: root/docs/3_Developer_Guides/6_AFB_Helper_Guide/3.7.6_Qt_AFB_Websocket_client.md
diff options
context:
space:
mode:
authorgrowupboron <shankhoghosh123@gmail.com>2020-09-11 17:18:57 +0530
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2020-09-11 12:11:56 +0000
commit4aad369c9728061c97b3de792286e743ee884b09 (patch)
tree14bddddeab334e3fdbdcf29446a87aa11cf6cd97 /docs/3_Developer_Guides/6_AFB_Helper_Guide/3.7.6_Qt_AFB_Websocket_client.md
parent619a7e48085be1538c3b01eb93dcb9dc95bf0436 (diff)
Simplified doc-site generationjellyfish_9.99.4jellyfish/9.99.49.99.4
Updated theme to windmill Using Mkdocs static site generator Deployed on readthedocs Signed-off-by: growupboron <shankhoghosh123@gmail.com> Change-Id: If62eaaea1855c91b64f687900f54eba6bc1caee8 Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/documentation/+/25236 Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Tested-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Diffstat (limited to 'docs/3_Developer_Guides/6_AFB_Helper_Guide/3.7.6_Qt_AFB_Websocket_client.md')
-rw-r--r--docs/3_Developer_Guides/6_AFB_Helper_Guide/3.7.6_Qt_AFB_Websocket_client.md48
1 files changed, 48 insertions, 0 deletions
diff --git a/docs/3_Developer_Guides/6_AFB_Helper_Guide/3.7.6_Qt_AFB_Websocket_client.md b/docs/3_Developer_Guides/6_AFB_Helper_Guide/3.7.6_Qt_AFB_Websocket_client.md
new file mode 100644
index 0000000..17b4d2b
--- /dev/null
+++ b/docs/3_Developer_Guides/6_AFB_Helper_Guide/3.7.6_Qt_AFB_Websocket_client.md
@@ -0,0 +1,48 @@
+---
+edit_link: ''
+title: Qt AFB Websocket client
+origin_url: >-
+ https://git.automotivelinux.org/src/libafb-helpers/plain/docs/qafbwebsocketclient.md?h=master
+---
+
+<!-- WARNING: This file is generated by fetch_docs.js using /home/boron/Documents/AGL/docs-webtemplate/site/_data/tocs/devguides/master/afb-helpers-function-references-afb-helpers-book.yml -->
+
+# A WebSocket client to an Application Framework Binder
+
+## QAfbWebsocketClient(QObject* parent = nullptr)
+
+Default constructor.
+
+* `parent`: Parent object.
+
+## QAbstractSocket::SocketError error()
+
+Get and return the last error code.
+
+## QString errorString()
+
+Get and return the last error as a string.
+
+## bool isValid()
+
+Check if connection is ready or not.
+
+Returns `true` if the connected is ready to read and write, `false` otherwise.
+
+## void call(const QString& api, const QString& verb, const QJsonValue& arg = QJsonValue(), closure_t closure = nullptr)
+
+Call an api's verb with an argument.
+
+* `api`: Api to call.
+* `verb`: Verb to call.
+* `arg`: Argument to pass.
+* `closure`: callback function to call at the verb reply
+
+## void QAfbWebsocketClient::sendTextMessage(QString msg)
+
+Send a text message over the websocket.
+
+This is use for test only, you should not use this method because it sent text
+**as-is**, so you have to follow the binder's protocol by your self.
+
+* `msg`: Message to send.