summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMorten Sørvig <morten.sorvig@qt.io>2022-09-08 11:56:33 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-09-15 04:45:34 +0000
commitdc87606ba5c13cd79f7d3e9d2bdade1b713f18be (patch)
tree6fed11c91e96ef8c9ec4d9a7b72b7a2b58ece3e9
parent5f528da17d1a8c7917d734b511b301a0da3084f0 (diff)
downloadqtdoc-dc87606ba5c13cd79f7d3e9d2bdade1b713f18be.tar.gz
wasm: document (emulated) TCP sockets support
Qt sockets classes now work with the socket emulation functionality provided by Emscripten, where tcp sockets are tunnelled over WebSockets. Change-Id: Id56fb8817621bc865e2e1f837792ede4adf99f7f Reviewed-by: Lorn Potter <lorn.potter@gmail.com> (cherry picked from commit 33a0ee439faa39f8a849381fb247a86586e748f2) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--doc/src/platforms/wasm.qdoc8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/src/platforms/wasm.qdoc b/doc/src/platforms/wasm.qdoc
index 8fe0f719..02ece51e 100644
--- a/doc/src/platforms/wasm.qdoc
+++ b/doc/src/platforms/wasm.qdoc
@@ -387,14 +387,14 @@ The following protocols are supported:
server which supports CORS. This includes XMLHttpRequest from QML.
\li QWebSocket connections to any host. Note that web pages served over the secure https protocol
allows websockets connections over secure wss protocol only.
+\li Emulated POSIX TCP Sockets over WebSockets, using functionality provided by
+\l{https://emscripten.org/docs/porting/networking.html#emulated-posix-tcp-sockets-over-websockets}
+{Emscripten}. Note that this requires running a \l{https://github.com/novnc/websockify}
+{forwarding server} which handles socket translation.
\endlist
All other network protocols are not supported.
-In addition Emscripten supports \l{https://emscripten.org/docs/porting/networking.html}
-{emulated POSIX TCP sockets over WebSockets}. This is not currently supported by Qt's socket
-classes.
-
\section2 Local File Access
File system access is sandboxed on the web, and this has implications for how the