@based/client
Advanced tools
Comparing version 4.6.3 to 4.7.0
@@ -29,2 +29,3 @@ import { BasedOpts, AuthState, FunctionResponseListeners, Settings, FunctionQueue, ObserveState, ObserveQueue, Cache, GetObserveQueue } from './types'; | ||
isDrainingStreams: boolean; | ||
maxPublishQueue: number; | ||
publishQueue: ChannelPublishQueue; | ||
@@ -31,0 +32,0 @@ functionQueue: FunctionQueue; |
@@ -46,2 +46,3 @@ "use strict"; | ||
// --------- Queue | ||
this.maxPublishQueue = 1000; | ||
this.publishQueue = []; | ||
@@ -48,0 +49,0 @@ this.functionQueue = []; |
@@ -166,3 +166,4 @@ "use strict"; | ||
const addToPublishQueue = (client, id, payload) => { | ||
if (client.publishQueue.length > 500) { | ||
// TODO: make this configurable at some point | ||
if (client.publishQueue.length > client.maxPublishQueue) { | ||
client.publishQueue.shift(); | ||
@@ -169,0 +170,0 @@ } |
{ | ||
"name": "@based/client", | ||
"version": "4.6.3", | ||
"version": "4.7.0", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
201873
3202