summaryrefslogtreecommitdiff
path: root/examples/websockets/doc/qmlwebsocketserver.qdoc
blob: 099d6d6241d50e1ce91705dacc738b6bc8c627ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright (C) 2016 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com, author Milian Wolff <milian.wolff@kdab.com>
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

/*!
    \example qmlwebsocketserver
    \title QML WebSocket Server
    \examplecategory {Networking}
    \ingroup qtwebsockets-examples
    \brief A simple example that shows how to use a QML WebSocketServer.

    \image qmlwebsocketserver-example.webp QML WebSocket Server GUI

    This example opens a window and has a WebSocketServer listening
    for incoming connections and a WebSocket connecting to the
    WebSocketServer. Every time the window is clicked, the WebSocket
    sends a message to the WebSocketServer. The WebSocketServer has a
    signal handler that logs the incoming message to the window and
    sends a message back again, and the WebSocket has a signal
    handler that logs the returned message to the window.
*/