3.1.4 - finalised message queueing

This commit is contained in:
hydrabolt
2015-08-30 21:51:02 +01:00
parent be0be60947
commit 68fd2ee9dd
5 changed files with 40 additions and 6 deletions

View File

@@ -19,7 +19,7 @@ var WebSocket = require("ws");
var fs = require("fs");
var defaultOptions = {
queue: []
queue: false
};
var Client = (function () {
@@ -35,7 +35,7 @@ var Client = (function () {
further efforts will be made to connect.
*/
this.options = options;
this.options.queue = this.options.queue || [];
this.options.queue = this.options.queue;
this.token = token;
this.state = 0;
this.websocket = null;