peerjs
peerjs copied to clipboard
Better understandability when doing peer.connect(...)
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.
I wish I had seen this a couple hours ago... Thanks! This is THE BEST CONTENT! ; )
I wish I had seen this before I started, had to think of it myself. peerjs needs to update their documentation.