blank-web-sdk
Advanced tools
Comparing version 0.0.15 to 0.0.16
@@ -122,5 +122,3 @@ "use strict"; | ||
this.__resetWS(); | ||
// if (this._wsClient && this._wsClient.readyState !== wsStates.CLOSED) { | ||
// throw new Error("WebSocket not closed. Close WebSocket and try again. To close WebSocket use function \"close()\""); | ||
// } | ||
if (!/^(wss?:\/\/).+/.test(serverUrl)) { | ||
@@ -392,3 +390,3 @@ throw new Error("Incorrect server url: " + serverUrl); | ||
if (this._wsClient && this._wsClient.readyState === wsStates.CLOSED) { | ||
this.connect.call(this, this._serverUrl); | ||
this.connect(this._serverUrl); | ||
} | ||
@@ -415,2 +413,3 @@ } | ||
_this.close(); | ||
_this.connect(_this._serverUrl); | ||
} | ||
@@ -417,0 +416,0 @@ }, this._heartBeatInterval); |
{ | ||
"name": "blank-web-sdk", | ||
"version": "0.0.15", | ||
"version": "0.0.16", | ||
"description": "SDK for web applications created with Blank back-end", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
Sorry, the diff of this file is too big to display
401883
10187