MAR - Hello world QWebsocket example not working on cloud

  • I am stuck with the echoserver QWebsocket example which doesn't seem to run properly as the MAR (from "Give a Push to Your Qt Application with Qt Cloud Services and WebSockets" PDF). The server app starts with specified port (eg. PORT 9642) with the QWebSocketServer::SecureMode on but no certificate set (free version of the cloud has no custom cert.). Client attempts to set the connection (eg. QUrl( "wss://"), but times out instead. :-/ Now there are four error handlers (one for every QWebSocketServer error) on the server side, but no error signal is emitted:

     connect(m_pWebSocketServer, SIGNAL(acceptError(QAbstractSocket::SocketError)), this, SLOT(onError(QAbstractSocket::SocketError))); //onError prints message with qDebug()

    Any idea what might be wrong?
    Thank you for help.

  • EDIT: OpenSSL problem had been caused by wrong framework (Qt 5.4.0 64bit) used to translate server app (with 32bit OpenSSL and 32bit client). Still I can't find the problem with the MAR instance. :-/ Localhost connection works only for ws:// Server app refuses connections via wss://

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.