i search to use tufao to open a websocket with a tomcat server.
connect(&websocket, SIGNAL(connected()), this, SLOT(onConnected()));
connect(&websocket, SIGNAL(disconnected()), this, SLOT(onDisconnected()));
connect(&websocket, SIGNAL(newMessage(QByteArray)),this, SLOT(onMessage(QByteArray)));
websocket.connectToHost(QHostAddress::LocalHost, 8080, "/testecho");
[/code]
but i receive the disconnect message immediatly after the connect message.
i think i must do a startServerHandshake because i must send a http get request with upgrade method.
but i don't arrive to use it.
maybe somebody can help me