peers/peerjs

Error expected on DataConnection when not establishing a connection

Open

#924 创建于 2022年2月17日

在 GitHub 查看
 (5 评论) (7 反应) (0 负责人)TypeScript (11,580 star) (1,406 fork)batch import
clientfeaturehelp wanted

描述

When a DataConnection fails to establish, for example, due to connecting to an invalid ID or to one's own ID, I would expect the dataConnection.on('error', () => {...}) callback to be executed. Instead, only peer.on('error', () => {}) catches such kinds of errors. This is especially annoying when you want to for example connect to multiple peers at once since we cannot know which one has failed to connect, making it hard to tell the user which peer(s) has issues.

贡献者指南