Questions tagged [qtwebsockets]

QtWebSockets is a module from the Qt Toolkit which provides interfaces that enable Qt applications to act as a server that can process WebSocket requests, or a client that can consume data received from the server, or both.

Documentation can be found here (Qt5).

20 questions
20
votes
1 answer

Overhead of Idle WebSockets

Say I have an websocket that may receive an event at any time, but is mostly idle, how much bandwidth will be consumed after the initial connection in order to keep it alive? For what it's worth, the server is NodeJS using ws, and the client is…
Jacob
  • 1,335
  • 1
  • 14
  • 28
14
votes
3 answers

Qt local secure web sockets

I'm working on a Qt application which communicate with my web browser (currently Google Chrome) through a WebSocket. Everything was working fine until I tried to use secured websockets... I managed to resolve the issues I had with OpenSSL, so now I…
Holt
  • 36,600
  • 7
  • 92
  • 139
4
votes
1 answer

Qt websocket server example not working

I am trying the example from http://doc.qt.io/qt-5/qtwebsockets-echoserver-example.html to create a simple websocket server and connect to it via google chrome browser. I just used the example files, the default port (1234), I built it and the…
HansHupe
  • 476
  • 3
  • 13
2
votes
1 answer

Why can't I connect QWebsocket::error SIGNAL to a lambda or any other SLOT type with identical signature? QT5.9

I'm trying to build a simple program that implements a QWebSocket, however, what I first tried to do is check if the connection is enabled. It didn't throw any exception since I never connected the error signal but I could check on my cloud server…
2
votes
1 answer

Qt WebView and WebChannel over WebSockets in QML

I want to access QtObject from HTML-page running in WebView - invoke methods, read/write properties, etc. As far as I understood, I need to establish WebSockets connection between QML and HTML sides, and then use it as a transport for…
retif
  • 1,495
  • 1
  • 22
  • 40
2
votes
0 answers

Secure websocket connection created with QWebSocket is refused

I have a problem with QWebSocket connection with C++. QWebSocket *mWebSocket = new QWebSocket(); connect(mWebSocket, SIGNAL(connected()), this, SLOT(connected())); connect(mWebSocket, SIGNAL(disconnected()), this,…
Vova Shevchyk
  • 138
  • 10
2
votes
0 answers

Qt Websocket processing multiple requests at the same time

My application is based on the Qt websocket example (http://doc.qt.io/qt-5/qtwebsockets-echoserver-example.html). In my application around 20 users are connected to the websocket server and some are sending messages with some megabytes. I noticed…
MikeHuber
  • 575
  • 2
  • 7
  • 13
2
votes
1 answer

QWebSocket can't process the handshake

I have a problem with establishing a WebSocket connection using QWebSocket. I'm using Qt 5.6 and its QWebSocket implementation. I'm sure that server works right and uses WS v13 protocol. It works fine with all browsers. When I try to connect to the…
namikiri
  • 81
  • 1
  • 8
1
vote
0 answers

Upgraded Nuke, now I am getting a No module named 'PySide2.QtWebSockets' error

I'm a VFX artist trying to expand my horizons into coding, so sorry for my noob question. In Nuke 13 I can load a plugin called NukeServerSocket v1.5 which uses PySide2 just fine. But I updated the application to Nuke 14, it crashes with a No module…
itaki
  • 39
  • 3
1
vote
0 answers

WebSocket QML Type is there a ping/pong system

Does WebSocket QML Type support any ping/pong system? Documentation doesn't say anything about it, so I'm wondering if there is a way to "simulate" ping/pong, e.g. trying to use one of the send methods and check what comes back in the co-responding…
light01
  • 155
  • 1
  • 3
  • 17
1
vote
2 answers

Qt QWebsocket::open blocks user interface

I'm working on a small system, it's made by several clients and one admin application. Each client has a QWebSocket server to listen admin's requests so admin app needs to connect to different clients. This is my Login Dialog: Before login I don't…
Engel
  • 189
  • 3
  • 16
1
vote
2 answers

How to modify QWebsocket timers in Qt

I have a simple Client application (using QWebSocket) that wants to connect to my server application (i.e. QWebSocketServer). When I open a connection to a webSocketServer that is down/unavailable, my webSocket fires a "disconnectd" signal after 30…
qwa
  • 123
  • 10
1
vote
2 answers

QWebSocket from QTcpSocket

I've written a small web server using QTcpServer, etc... It works fine so I wanted to get a bit further and implement Qt's WebSocket functionality. I want the WebSocket-Server to be reachable on the same port as my web server (due to limitations at…
strnmn
  • 555
  • 1
  • 6
  • 30
1
vote
1 answer

How to make Qt Websocket and QNetworkRequest (HTTP) to use the same connection?

Is it possible with Qt to upgrade a HTTP connection that handles the normal HTTP requests to a Websocket with the same connection? I'm thinking about something like this with Poco libraries, but all done in Qt similar to QtWebApp.
Darien Pardinas
  • 5,910
  • 1
  • 41
  • 48
1
vote
1 answer

Qtwebsockets Samples SSL

I am trying to use qtwebsockets but I've got problems with the ssl echoserver and client. My project is developed in QT 5.3.2 MiniGW windows 8 64 bit, I can succesfully use the non ssl server sample but when i try to use the ssl one this is what I…
Fra
  • 176
  • 2
  • 7
1
2