Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 Google 上进行了搜索,但没有得到正确的示例,如何使用 webRTC 和 node.js 创建文本聊天应用程序。
请如果有人知道如何做到这一点。请分享详细信息。
由于 webRTC 使用点对点通信,您可能不需要 node.js 来进行聊天。
但是,您可以使用 node.js 来发送信号以建立通信(例如使用 Websockets)。一旦 RTCPeerConnection 启动并运行,就可以使用 RTCDataChannel 发送文本。
下面的链接可以让你开始
http://simpl.info/rtcdatachannel/