在Socket.io演示中集成QT客户端

时间:2021-08-13 15:50:57

I am a beginner and would like to understand how to realize this small application, using node.js, socket.io and QT.

我是初学者,想了解如何使用node.js,socket.io和QT来实现这个小应用程序。

I made a server-side chat, following the tutorial on socket.io/get-started/chat/. Now I would like to create a desktop client (QT and C ++) that exploits the same server nodejs. How can I get this? [sketch]

我按照socket.io/get-started/chat/上的教程进行了服务器端聊天。现在我想创建一个利用相同服务器nodejs的桌面客户端(QT和C ++)。我怎么能得到这个? [草图]

I am sorry for my bad English. Thank you all! :)

我很抱歉我的英语不好。谢谢你们! :)

1 个解决方案

#1


2  

SOLUTION For this problem do not use socket.io, but normal WebSockets.

解决方案对于此问题,请不要使用socket.io,而是使用普通的WebSockets。

wp for node.js

wp for node.js

QWebSockets for Qt

Qt的QWebSockets

#1


2  

SOLUTION For this problem do not use socket.io, but normal WebSockets.

解决方案对于此问题,请不要使用socket.io,而是使用普通的WebSockets。

wp for node.js

wp for node.js

QWebSockets for Qt

Qt的QWebSockets