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.
我正在使用simple-peer库来制作聊天应用程序。 当我使用 接收来自其他对等连接的消息时peer.on('data' => (data) => { console.log(data) }),它会被多次调用,并且我会多次收到该消息。
simple-peer
peer.on('data' => (data) => { console.log(data) })