Upgrade libsignal-client to 0.44.0 and adopt API changes

This commit is contained in:
Sergey Skrobotov
2024-04-04 14:39:52 -07:00
committed by GitHub
parent 37725647c8
commit e388f13910
13 changed files with 266 additions and 138 deletions

View File

@@ -17,6 +17,7 @@ import { ConnectTimeoutError, HTTPError } from './Errors';
import { handleStatusCode, translateError } from './Utils';
const TEN_SECONDS = 10 * durations.SECOND;
const WEBSOCKET_CONNECT_TIMEOUT = TEN_SECONDS;
const KEEPALIVE_INTERVAL_MS = TEN_SECONDS;
export type IResource = {
@@ -42,7 +43,7 @@ export function connect<Resource extends IResource>({
version,
proxyAgent,
extraHeaders = {},
timeout = TEN_SECONDS,
timeout = WEBSOCKET_CONNECT_TIMEOUT,
createResource,
}: ConnectOptionsType<Resource>): AbortableProcess<Resource> {
const fixedScheme = url