【问题标题】:Peerjs: on connection not working on safari and iOSPeerjs:连接无法在 Safari 和 iOS 上运行
【发布时间】:2021-05-29 14:01:31
【问题描述】:

此代码在 android 和 pc 上运行良好 但不适用于 Safari 和 iOS

myPeer.on('connection', (conn) => {
                console.log("connection");
                conn.on('data', (data) => {
                    console.log(data);
                });
            });

在 safari 上出现此错误:

ERROR – "PeerJS: " – "Error:" – "(TypeError) Attempted to assign to readonly property."

【问题讨论】:

    标签: javascript websocket webrtc peerjs


    【解决方案1】:

    peerjs@1.3.2 版本修复了这个问题

    【讨论】:

      猜你喜欢
      • 2018-05-16
      • 1970-01-01
      • 1970-01-01
      • 2016-08-12
      • 2021-12-09
      • 2020-05-03
      • 1970-01-01
      • 2018-02-04
      • 2011-05-13
      相关资源
      最近更新 更多