Comparing version 0.9.7 to 0.9.8
@@ -36,2 +36,3 @@ // Copyright (c) 2015 Uber Technologies, Inc. | ||
this.clientsBySessionToken = {}; | ||
this.sessionsCount = 0; | ||
} | ||
@@ -93,2 +94,3 @@ | ||
this.clientsBySessionToken[session.token] = client; | ||
this.sessionsCount++; | ||
@@ -122,2 +124,3 @@ // Ensure when the session expires we remove it | ||
delete this.clientsBySessionToken[session.token]; | ||
this.sessionsCount--; | ||
}; |
@@ -59,2 +59,4 @@ // Copyright (c) 2015 Uber Technologies, Inc. | ||
this.clientsBySessionToken = {}; | ||
this.sessionsCount = 0; | ||
if (robb.isUnsignedInt(options.establishSessionTimeout)) { | ||
@@ -181,2 +183,3 @@ this.establishSessionTimeout = options.establishSessionTimeout; | ||
this.clientsBySessionToken[session.token] = client; | ||
this.sessionsCount++; | ||
@@ -210,2 +213,3 @@ // Ensure when the session expires we remove it | ||
delete this.clientsBySessionToken[session.token]; | ||
this.sessionsCount--; | ||
}; |
{ | ||
"name": "jetstream", | ||
"version": "0.9.7", | ||
"version": "0.9.8", | ||
"description": "Jetstream Sync server framework to sync local and remote models", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
505253
11304