kuzzle-sdk
Advanced tools
Comparing version 7.6.2 to 7.6.3
@@ -1,1 +0,1 @@ | ||
/*! Kuzzle Javascript SDK version 7.6.2 */ | ||
/*! Kuzzle Javascript SDK version 7.6.3 */ |
{ | ||
"name": "kuzzle-sdk", | ||
"version": "7.6.2", | ||
"version": "7.6.3", | ||
"description": "Official Javascript SDK for Kuzzle", | ||
@@ -5,0 +5,0 @@ "author": "The Kuzzle Team <support@kuzzle.io>", |
@@ -43,2 +43,3 @@ import { BaseProtocolRealtime } from './abstract/Realtime'; | ||
*/ | ||
_connect(): Promise<void>; | ||
connect(): Promise<void>; | ||
@@ -45,0 +46,0 @@ enableCookieSupport(): void; |
@@ -54,3 +54,3 @@ 'use strict'; | ||
*/ | ||
connect() { | ||
_connect() { | ||
return new Promise((resolve, reject) => { | ||
@@ -163,2 +163,9 @@ const url = `${this.ssl ? 'wss' : 'ws'}://${this.host}:${this.port}`; | ||
} | ||
connect() { | ||
if (this.cookieSupport) { | ||
return this._httpProtocol.connect() | ||
.then(() => this._connect()); | ||
} | ||
return this._connect(); | ||
} | ||
enableCookieSupport() { | ||
@@ -165,0 +172,0 @@ if (typeof XMLHttpRequest === 'undefined') { |
Sorry, the diff of this file is too big to display
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
402423
9735