diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2022-04-26 22:52:25 -0500 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2022-04-26 22:52:25 -0500 |
| commit | ef4060eb9dba304f173c64753075a412d4d889ac (patch) | |
| tree | 02d5403a9e646705e013c888101825bc5c768219 | |
| parent | e1a6603c50b8e53aa1766b179be094822a36aea0 (diff) | |
| download | slskd-ef4060eb9dba304f173c64753075a412d4d889ac.tar.gz | |
add searches hub
| -rw-r--r-- | src/web/src/lib/hubFactory.js | 6 |
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 |
