void MainWindow:nNewConnection()
{
QWebSocket* client = m_websocketServer->nextPendingConnection();
qDebug() << (QString("Homay robot server has new connection from %1.%2").arg(client->peerAddress().toString()).arg(client->localPort()));
auto pTransport = new WebSocketTransport(client);
// 可以不需要,这里只是为了调试打印js端的qwebchannel.js是怎么和C++端通信的,通信协议是什么样的
connect(pTransport, &WebSocketTransport::messageReceived, this, &MainWindow:nTransportMessageReceived);