Fixed options + message cache limit + server member count + leaving users

This commit is contained in:
abalabahaha
2016-03-10 22:16:05 -08:00
parent ef679e87c4
commit d2a9f15e82
8 changed files with 68 additions and 23 deletions

View File

@@ -73,8 +73,9 @@ var Client = (function (_EventEmitter) {
this.options = options || {};
this.options.compress = options.compress || !process.browser;
this.options.revive = options.revive || false;
this.options.rate_limit_as_error = options.rate_limit_as_error || false;
this.options.large_threshold = options.large_threshold || 250;
this.options.rateLimitAsError = options.rateLimitAsError || false;
this.options.largeThreshold = options.largeThreshold || 250;
this.options.maxCachedMessages = options.maxCachedMessages || 1000;
/**
* Internal Client that the Client wraps around.
* @readonly