peers/peerjs — pull request #38 by MatthiasLohr (2013-04-02 15:02:20+00:00)
Title: new method Peer.isConnected()

This method should be used for detecting if there's an active connection to the peer server instead of usage of Peer.disconnected, because this field is used internally and with this function the behavior internally can change later without problems.