Add initial support for a declarative WebSocketServer.
authorMilian Wolff <mail@milianw.de>
Fri, 21 Mar 2014 13:49:00 +0000 (14:49 +0100)
committerMilian Wolff <milian.wolff@kdab.com>
Wed, 2 Jul 2014 12:41:09 +0000 (14:41 +0200)
commit561e268bd5a3c5b9f578935766506eee2e81d382
treeb6e95452c27c69d21fff8605823255aeed72b81d
parent3f99082f3bb81982e0c6777875fb5c2a1d9033df
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>
13 files changed:
examples/websockets/doc/qmlwebsocketserver.qdoc [new file with mode: 0644]
examples/websockets/qmlwebsocketserver/data.qrc [new file with mode: 0644]
examples/websockets/qmlwebsocketserver/main.cpp [new file with mode: 0644]
examples/websockets/qmlwebsocketserver/qml/qmlwebsocketserver/main.qml [new file with mode: 0644]
examples/websockets/qmlwebsocketserver/qmlwebsocketserver.pro [new file with mode: 0644]
examples/websockets/websockets.pro
src/imports/qmlwebsockets/qmlwebsockets.pro
src/imports/qmlwebsockets/qmlwebsockets_plugin.cpp
src/imports/qmlwebsockets/qmlwebsockets_plugin.h
src/imports/qmlwebsockets/qqmlwebsocket.cpp
src/imports/qmlwebsockets/qqmlwebsocket.h
src/imports/qmlwebsockets/qqmlwebsocketserver.cpp [new file with mode: 0644]
src/imports/qmlwebsockets/qqmlwebsocketserver.h [new file with mode: 0644]