Michelle Bu 12 years ago
parent
commit
ba59b0605b
1 changed files with 3 additions and 1 deletions
  1. 3 1
      docs/api.md

+ 3 - 1
docs/api.md

@@ -93,7 +93,9 @@ The `error` object also has a `type` parameter that may be helpful in responding
 
 `function () { }`
 
-Emitted when the Peer object has closed it's connection with PeerServer so no more remote peer connections can be made or received..
+Emitted when the Peer object has closed it's connection with PeerServer so no more remote peer connections can be made or received.
+
+To be extra certain that Peer objects clean up cleanly (and because it takes the WS server and DataChannel some time to realize that a Peer has disconnected), it is best to call `destroy()` on a Peer when it is no longer needed.
 
 ## Class: peerjs.DataConnection