metajack/strophejs — pull request #92 by jpcaruana (2012-08-09 10:00:51+00:00)
Title: add feedback on 4 undocumented (without reason) disconnect

Hi,
while developing my app, I encountered several cases of "Disconnect was called because: undefined" in my logs. That wasn't very helpful and I found 4 calls of this.disconnect() without reason :

/** Function: disconnect
* Start the graceful disconnection process. [...]
*
* Parameters:
* (String) reason - The reason the disconnect is occuring.
*/

This patch adds feedback on these 4 undocumented disconnect. I hope it would be helpful to others.