diff options
author | Milian Wolff <mail@milianw.de> | 2014-03-21 14:49:00 +0100 |
---|---|---|
committer | Milian Wolff <milian.wolff@kdab.com> | 2014-07-02 14:41:09 +0200 |
commit | 561e268bd5a3c5b9f578935766506eee2e81d382 (patch) | |
tree | b6e95452c27c69d21fff8605823255aeed72b81d /src/imports/qmlwebsockets/qmlwebsockets_plugin.h | |
parent | 3f99082f3bb81982e0c6777875fb5c2a1d9033df (diff) | |
download | qtwebsockets-561e268bd5a3c5b9f578935766506eee2e81d382.tar.gz |
Add initial support for a declarative WebSocketServer.
It comes with basic support for setting up a non-secure server
listening on an arbitrary host and port. The name can be set,
and whether the server should be listening or accept connections.
The error string is also available via a property.
When a client connects, a clientConnected(QQmlWebSocket*) signal is
emitted.
To showcase the usage and functionality, a new qmlwebsocketserver
example is added which behaves similar to qmlwebsocketclient. It
simply sends messages from a WebSocket to a local WebSocketServer
which in turn sends a simple response.
Change-Id: Ib6318155ed08cbeea47d820b709764d2e36dcc45
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
Diffstat (limited to 'src/imports/qmlwebsockets/qmlwebsockets_plugin.h')
-rw-r--r-- | src/imports/qmlwebsockets/qmlwebsockets_plugin.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/imports/qmlwebsockets/qmlwebsockets_plugin.h b/src/imports/qmlwebsockets/qmlwebsockets_plugin.h index 9e64091..2c135f0 100644 --- a/src/imports/qmlwebsockets/qmlwebsockets_plugin.h +++ b/src/imports/qmlwebsockets/qmlwebsockets_plugin.h @@ -44,8 +44,6 @@ #include <QQmlExtensionPlugin> -#include "qqmlwebsocket.h" - QT_BEGIN_NAMESPACE class QtWebSocketsDeclarativeModule : public QQmlExtensionPlugin |