Permalink
Browse files

0.1.6

  • Loading branch information...
michelle committed Feb 21, 2013
1 parent fef74a4 commit ba59b0605bf5dad5afa841932989fe2f26f26498
Showing with 3 additions and 1 deletion.
  1. +3 −1 docs/api.md
View
@@ -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

0 comments on commit ba59b06

Please sign in to comment.