summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/webgl/qwebglintegration.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/platforms/webgl/qwebglintegration.cpp')
-rw-r--r--src/plugins/platforms/webgl/qwebglintegration.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/platforms/webgl/qwebglintegration.cpp b/src/plugins/platforms/webgl/qwebglintegration.cpp
index 1b4214a..08a432c 100644
--- a/src/plugins/platforms/webgl/qwebglintegration.cpp
+++ b/src/plugins/platforms/webgl/qwebglintegration.cpp
@@ -70,12 +70,13 @@ QWebGLIntegrationPrivate *QWebGLIntegrationPrivate::instance()
return static_cast<QWebGLIntegration *>(platformIntegration)->d_ptr.data();
}
-QWebGLIntegration::QWebGLIntegration(quint16 port) :
+QWebGLIntegration::QWebGLIntegration(quint16 port, quint16 wssport) :
d_ptr(new QWebGLIntegrationPrivate)
{
Q_D(QWebGLIntegration);
d->q_ptr = this;
d->httpPort = port;
+ d->wssPort = wssport;
d->touchDevice = new QTouchDevice;
d->touchDevice->setName("EmulatedTouchDevice");
d->touchDevice->setType(QTouchDevice::TouchScreen);
@@ -112,7 +113,7 @@ void QWebGLIntegration::initialize()
d->screen = new QWebGLScreen;
screenAdded(d->screen, true);
- d->webSocketServer = new QWebGLWebSocketServer;
+ d->webSocketServer = new QWebGLWebSocketServer(d->wssPort);
d->httpServer = new QWebGLHttpServer(d->webSocketServer, this);
bool ok = d->httpServer->listen(QHostAddress::Any, d->httpPort);
if (!ok) {