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.
我正在使用React.js 中的simple-peer来实现视频会议。当我在断开连接后连接两个对等点时,对等点会被破坏,但我想在同一个连接上重新连接它们,我不想创建一组新的对等点并再次执行握手以连接它们。有没有办法做到这一点?
您是否在连接的两端创建新的 Peer 对象?在本地销毁对等点将销毁它所连接的远程对等点。
另外,请在启用调试的情况下发布您的控制台日志。
peer._debug = console.log