quiq-chat
Advanced tools
Comparing version 1.10.3 to 1.10.4
@@ -321,3 +321,3 @@ 'use strict'; | ||
var version = "1.10.3"; | ||
var version = "1.10.4"; | ||
@@ -396,2 +396,6 @@ // | ||
var keepAlive = function keepAlive() { | ||
quiqFetch(getUrlForContactPoint() + '/keep-alive', { method: 'POST' }); | ||
}; | ||
var joinChat$1 = function joinChat() { | ||
@@ -461,2 +465,6 @@ quiqFetch(getUrlForContactPoint() + '/join', { method: 'POST' }); | ||
setTrackingId(res.tokenId); | ||
// Start calling the keepAlive endpoint | ||
keepAlive(); | ||
setInterval(keepAlive, 60 * 1000); | ||
} | ||
@@ -463,0 +471,0 @@ if (res.tokenId && _onNewSession) { |
{ | ||
"name": "quiq-chat", | ||
"version": "1.10.3", | ||
"version": "1.10.4", | ||
"description": "Library to help with network requests to create a webchat client for Quiq Messaging", | ||
@@ -5,0 +5,0 @@ "main": "build/quiq-chat.js", |
@@ -21,2 +21,6 @@ // @flow | ||
export const keepAlive = () => { | ||
quiqFetch(`${getUrlForContactPoint()}/keep-alive`, {method: 'POST'}); | ||
}; | ||
export const joinChat = () => { | ||
@@ -88,2 +92,6 @@ quiqFetch(`${getUrlForContactPoint()}/join`, {method: 'POST'}); | ||
setTrackingId(res.tokenId); | ||
// Start calling the keepAlive endpoint | ||
keepAlive(); | ||
setInterval(keepAlive, 60 * 1000); | ||
} | ||
@@ -90,0 +98,0 @@ if (res.tokenId && _onNewSession) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
568833
52
3959