Move and improve debug/warn docs

This commit is contained in:
Schuyler Cebulskie
2016-09-19 05:11:35 -04:00
parent 6a94658dd7
commit 47d873a8ca
4 changed files with 13 additions and 9 deletions

View File

@@ -26,10 +26,6 @@ class ClientManager {
* @param {function} reject Function to run when connection fails
*/
connectToWebSocket(token, resolve, reject) {
/**
* Emitted when there is debug information
* @event Client#debug
*/
this.client.emit(Constants.Events.DEBUG, `Authenticated using token ${token}`);
this.client.token = token;
const timeout = this.client.setTimeout(() => reject(new Error(Constants.Errors.TOOK_TOO_LONG)), 1000 * 300);