Connection.on("open") never gets called while Peer.on("connect") gets called

76 views
Skip to first unread message

Karim Mansour

unread,
Jun 3, 2015, 7:10:20 AM6/3/15
to pee...@googlegroups.com

Okay ... here is how to reproduce this on the official peer.js chat app "http://cdn.peerjs.com/demo/chat.html"

Open 2 chat windows on different browsers...

1) in the first window insert a breakpoint on line 47 which is the first line in the connect function that will be called once Peer.on("connection") is called.

2) connect from the second window to the first "the one with the breakpoint".

3) one you're stopped at the breakpoint hit resume on the first window and the second window will never have the Connection.on("open") fired ! while the first would have a connection opened !

i am not sure why this happens ! any help ?

Reply all
Reply to author
Forward
0 new messages