peerjs icon indicating copy to clipboard operation
peerjs copied to clipboard

Better understandability when doing peer.connect(...)

Open quentincaffeino opened this issue 4 years ago • 2 comments

While trying out this repo I stumbled upon the fact that peer.connect must be called only after peer open had successfully fired. Otherwise it won't work. Is it intentional? I haven't found anything about this behavior in docs, correct me if I'm wrong. Maybe throwing an exception if connect called before peer has been opened might be a good tweak.

quentincaffeino avatar Apr 17 '20 23:04 quentincaffeino

I wish I had seen this a couple hours ago... Thanks! This is THE BEST CONTENT! ; )

ppseprus avatar Apr 09 '21 01:04 ppseprus

I wish I had seen this before I started, had to think of it myself. peerjs needs to update their documentation.

AfeezGL avatar Nov 13 '21 17:11 AfeezGL