Comparing version 10.0.0-beta.9 to 10.0.0-beta.10
@@ -27,3 +27,5 @@ "use strict"; | ||
this.apikey = apikey; | ||
this.closeConnection(); | ||
if (this.socket.readyState === isomorphic_ws_1.default.OPEN) { | ||
this.closeConnection(); | ||
} | ||
this.connect(); | ||
@@ -30,0 +32,0 @@ } |
{ | ||
"name": "newsware", | ||
"version": "10.0.0-beta.9", | ||
"version": "10.0.0-beta.10", | ||
"description": "Typescript client for interacting with the Newsware API", | ||
@@ -5,0 +5,0 @@ "main": "lib/src/index.js", |
@@ -31,3 +31,5 @@ import { ConnectOptions, SubscribeOptions, WebsocketRequest, WebsocketResponse, } from "./types"; | ||
this.apikey = apikey | ||
this.closeConnection() | ||
if (this.socket.readyState === WebSocket.OPEN) { | ||
this.closeConnection() | ||
} | ||
this.connect() | ||
@@ -34,0 +36,0 @@ } |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
92968
1835