peerjs icon indicating copy to clipboard operation
peerjs copied to clipboard

Connect to multiple peerID at the same time- peerjs

Open jennifer671 opened this issue 3 years ago • 2 comments

hi, i would like to extend host code to support multiuser chat but i am getting problem on connecting multiple peerid at the same time, can anyone help me?

full code : https://jennifer671.github.io/chat/

jennifer671 avatar Mar 05 '21 11:03 jennifer671

I also am getting issues with more than 2 clients.

https://github.com/altruios/peer-net

I am trying to send a message to each peer when a new peer joins, to each peer in the pool.

however while incoming connections are received, outgoing messages are stuck to one connection, regardless of which connection is being used, only one is 'alive'.

so the topology looks like 'boot' 'first' 'second'

where boot starts first, first connects, boot sees first and both have each other's connection in a pool, when second joins, both first and boot are updated with second's id, but second never receives a connection event, even though boot and first see it and try to join.

altruios avatar Jun 20 '23 17:06 altruios

I also am getting issues with more than 2 clients.

https://github.com/altruios/peer-net

I am trying to send a message to each peer when a new peer joins, to each peer in the pool.

however while incoming connections are received, outgoing messages are stuck to one connection, regardless of which connection is being used, only one is 'alive'.

so the topology looks like 'boot' 'first' 'second'

where boot starts first, first connects, boot sees first and both have each other's connection in a pool, when second joins, both first and boot are updated with second's id, but second never receives a connection event, even though boot and first see it and try to join.

nevermind, I corrected the issue (my code)

altruios avatar Jun 21 '23 03:06 altruios