diff options
author | Lorn Potter <lorn.potter@gmail.com> | 2018-01-18 07:05:03 +1000 |
---|---|---|
committer | Lorn Potter <lorn.potter@gmail.com> | 2018-09-20 18:42:44 +0000 |
commit | f1aaf5660d2d7cd06f8b18fa30bce3393b752f9f (patch) | |
tree | 99bbb9a0713284f1456b309bfecc165206dfc49d /src/websockets/qwebsocket_p.cpp | |
parent | 02db65bebc051bf4e88457f315b8ecce2e784074 (diff) | |
download | qtwebsockets-f1aaf5660d2d7cd06f8b18fa30bce3393b752f9f.tar.gz |
Add support for WebSockets on Qt for WASM
Implement the QWebSocket API using HTML WebSocket.
Change-Id: I2284f8606d512943d2abc2a96fc48effcc45a786
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'src/websockets/qwebsocket_p.cpp')
-rw-r--r-- | src/websockets/qwebsocket_p.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/websockets/qwebsocket_p.cpp b/src/websockets/qwebsocket_p.cpp index 01a93f4..8529538 100644 --- a/src/websockets/qwebsocket_p.cpp +++ b/src/websockets/qwebsocket_p.cpp @@ -224,6 +224,8 @@ bool QWebSocketPrivate::flush() return result; } +#ifndef Q_OS_WASM + /*! \internal */ @@ -240,6 +242,8 @@ qint64 QWebSocketPrivate::sendBinaryMessage(const QByteArray &data) return doWriteFrames(data, true); } +#endif + #ifndef QT_NO_SSL /*! \internal @@ -320,6 +324,8 @@ QWebSocket *QWebSocketPrivate::upgradeFrom(QTcpSocket *pTcpSocket, return pWebSocket; } +#ifndef Q_OS_WASM + /*! \internal */ @@ -468,6 +474,8 @@ void QWebSocketPrivate::open(const QNetworkRequest &request, bool mask) } } +#endif + /*! \internal */ |