peer.connect
emits error to peer instead of to connection when no connection can be made
#1281
Open
1 task done
Labels
Please, check for existing issues to avoid duplicates.
What happened?
When no connection can be made, this error is emitted:
peerjs/lib/peer.ts
Line 380 in 6bfc320
The docs state that:
Of course, not being able to connect to another peer is definitely not fatal.
How can we reproduce the issue?
No response
What do you expected to happen?
I expected an error to be emitted to the connection as well.
I am not the only one.
If we look at this official(?) example
The Promise
connectPeer
returns will resolve if a peer cannot be connected to, since the error is not emitted to the connection.Environment setup
Not really relevant.
Is this a regression?
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: