From ef4060eb9dba304f173c64753075a412d4d889ac Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Tue, 26 Apr 2022 22:52:25 -0500 Subject: add searches hub --- src/web/src/lib/hubFactory.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') 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 -- cgit v1.2.3