简体   繁体   English

服务器和客户端之间的 RTCDataChannel 通信

[英]RTCDataChannel communication between server and client

I am going to create real time web application and would like to use WebRTC RTCDataChannel to exchange data between client and server.我将创建实时 web 应用程序,并想使用 WebRTC RTCDataChannel 在客户端和服务器之间交换数据。

WebRTC is created for peer-to-peer communication. WebRTC 是为点对点通信而创建的。 However, is it possible to do data exchanging between server and client?但是,是否可以在服务器和客户端之间进行数据交换?

Yes.是的。 You could use a WebRTC implementation and build your server from the ground up.您可以使用 WebRTC 实现并从头开始构建您的服务器。 Will feel like using a HTTP library and setting your own endpoints.感觉就像使用 HTTP 库并设置自己的端点。

Or you could run a WebRTC server and write an extension/modify it.或者您可以运行 WebRTC 服务器并编写扩展/修改它。 This will get you something working quicker.这会让你更快地工作。

Happy to answer more directed questions.很高兴回答更多有针对性的问题。 I think it depends on what languages/tools you feel comfortable with.我认为这取决于您对哪种语言/工具感到满意。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM