webrtc - 为什么有 WebRTC 时我们需要 crossbar.io (WAMP)?
问题描述
据我了解,crossbar 提供了客户端之间的透明连接。因此客户端可以相互通信。WebRTC 做几乎相同的事情,没有具有较低延迟的中央服务器(除了信令服务器)。
那么为什么我们首先需要横杆呢?
我错过了什么吗?
解决方案
The two technologies are very different from one another.
WebRTC enables voice, video and data to be passed in real time directly between browsers. It has no notion of messaging, signaling or even a network architecture. It is a kind of a building block that got implemented inside a web browser and you can now use. When using it, you'll still be needing servers to get one browser/device connected to another browser/device - a signaling server.
From looking at the site of crossbar.io, it seems like this is an open source framework that implements signaling for IOT devices - it can connect devices to a centralized server that handles the control messages and signals that get sent between the devices and/or users.
Here's the interesting thing - if Crossbar were to handle voice/video or low latency data transmission - they'd probably end up integrating WebRTC. And on the other hand, you can use Crossbar as a signaling mechanism for WebRTC.
Apples to oranges.
推荐阅读
- rest - 我正在尝试构建一个使用 HTTP GET 在线获取数据的应用程序,但它返回一个空列表
- php - Laravel 5.2 session flash 第一次不起作用
- c# - 将键:值对添加到 JToken/JArray
- javascript - 如何使用javascript清除输入?
- javascript - 如何在反应中从类中获取道具值到函数中?
- node.js - 如何在 Windows 10 的用户环境变量中设置多个路径
- clojure - 使用clojure按值分组和合并?
- node.js - 调用get observable时出现Angular HTTP GET Cors错误
- c# - 如何使用 C# .NET CORE 在 NSwag 文档中添加自定义标题?
- firebase - 如何在身份验证时获取 Idtoken