summaryrefslogtreecommitdiff
path: root/src/imports/qmlwebsockets/qmlwebsockets_plugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/imports/qmlwebsockets/qmlwebsockets_plugin.cpp')
-rw-r--r--src/imports/qmlwebsockets/qmlwebsockets_plugin.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/imports/qmlwebsockets/qmlwebsockets_plugin.cpp b/src/imports/qmlwebsockets/qmlwebsockets_plugin.cpp
index 9c7f2d6..07176da 100644
--- a/src/imports/qmlwebsockets/qmlwebsockets_plugin.cpp
+++ b/src/imports/qmlwebsockets/qmlwebsockets_plugin.cpp
@@ -43,6 +43,9 @@
#include <QtQml>
+#include "qqmlwebsocket.h"
+#include "qqmlwebsocketserver.h"
+
QT_BEGIN_NAMESPACE
void QtWebSocketsDeclarativeModule::registerTypes(const char *uri)
@@ -51,6 +54,7 @@ void QtWebSocketsDeclarativeModule::registerTypes(const char *uri)
// @uri Qt.WebSockets
qmlRegisterType<QQmlWebSocket>(uri, 1 /*major*/, 0 /*minor*/, "WebSocket");
+ qmlRegisterType<QQmlWebSocketServer>(uri, 1 /*major*/, 0 /*minor*/, "WebSocketServer");
}
QT_END_NAMESPACE