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::SecureModeon but no certificate set (free version of the cloud has no custom cert.). Client attempts to set the connection (eg.
QUrl( "wss://mar-eu-1-yv5wlj8z.qtcloudapp.com:9642"), 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://