peerjs
peerjs copied to clipboard
Connect to multiple peerID at the same time- peerjs
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/
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.
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)