aboutsummaryrefslogtreecommitdiffstats
path: root/src/web
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2022-04-26 22:52:25 -0500
committerJP Dillingham <jpdillingham@gmail.com>2022-04-26 22:52:25 -0500
commitef4060eb9dba304f173c64753075a412d4d889ac (patch)
tree02d5403a9e646705e013c888101825bc5c768219 /src/web
parente1a6603c50b8e53aa1766b179be094822a36aea0 (diff)
downloadslskd-ef4060eb9dba304f173c64753075a412d4d889ac.tar.gz
add searches hub
Diffstat (limited to 'src/web')
-rw-r--r--src/web/src/lib/hubFactory.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/web/src/lib/hubFactory.js b/src/web/src/lib/hubFactory.js
index a64c5c40..e0205ec9 100644
--- a/src/web/src/lib/hubFactory.js
+++ b/src/web/src/lib/hubFactory.js
@@ -13,11 +13,13 @@ export const createHubConnection = ({ url }) =>
withCredentials: true,
accessTokenFactory: session.isPassthroughEnabled() ? undefined : session.getToken
})
- .withAutomaticReconnect([0, 500, 1000, 3000, 5000, 5000, 5000, 5000, 5000])
+ .withAutomaticReconnect([0, 100, 250, 500, 1000, 2000, 3000, 5000, 5000, 5000, 5000, 5000])
.withHubProtocol(new JsonHubProtocol())
.configureLogging(LogLevel.Warning)
.build();
export const createApplicationHubConnection = () => createHubConnection({ url: `${rootUrl}hub/application` });
-export const createLogsHubConnection = () => createHubConnection({ url: `${rootUrl}hub/logs` }); \ No newline at end of file
+export const createLogsHubConnection = () => createHubConnection({ url: `${rootUrl}hub/logs` });
+
+export const createSearchLogHubConnection = () => createHubConnection({ url: `${rootUrl}hub/search` }); \ No newline at end of file