socket-function 0.109.0 → 0.110.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/nodeCache.ts +6 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "socket-function",
3
- "version": "0.109.0",
3
+ "version": "0.110.0",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "dependencies": {
package/src/nodeCache.ts CHANGED
@@ -87,6 +87,12 @@ export function getCallFactory(nodeId: string): MaybePromise<CallFactory | undef
87
87
  return nodeCache.get(nodeId);
88
88
  }
89
89
 
90
+ export function resetAllNodeCallFactories() {
91
+ // Needs to be done if you want to reset authentication. Outstanding calls still work,
92
+ // but new calls use new factories (and connections).
93
+ nodeCache.clear();
94
+ }
95
+
90
96
  const startCleanupLoop = lazy(() => {
91
97
  (async () => {
92
98
  while (true) {