connection: update headers and other things
This commit is contained in:
@@ -38,12 +38,14 @@ export const PROCESSABLE_HISTORY_TYPES = [
|
||||
proto.Message.HistorySyncNotification.HistorySyncType.PUSH_NAME,
|
||||
proto.Message.HistorySyncNotification.HistorySyncType.RECENT,
|
||||
proto.Message.HistorySyncNotification.HistorySyncType.FULL,
|
||||
proto.Message.HistorySyncNotification.HistorySyncType.ON_DEMAND
|
||||
proto.Message.HistorySyncNotification.HistorySyncType.ON_DEMAND,
|
||||
proto.Message.HistorySyncNotification.HistorySyncType.NON_BLOCKING_DATA,
|
||||
proto.Message.HistorySyncNotification.HistorySyncType.INITIAL_STATUS_V3
|
||||
]
|
||||
|
||||
export const DEFAULT_CONNECTION_CONFIG: SocketConfig = {
|
||||
version: version as WAVersion,
|
||||
browser: Browsers.ubuntu('Chrome'),
|
||||
browser: Browsers.macOS('Chrome'),
|
||||
waWebSocketUrl: 'wss://web.whatsapp.com/ws/chat',
|
||||
connectTimeoutMs: 20_000,
|
||||
keepAliveIntervalMs: 30_000,
|
||||
@@ -70,7 +72,7 @@ export const DEFAULT_CONNECTION_CONFIG: SocketConfig = {
|
||||
patch: false,
|
||||
snapshot: false
|
||||
},
|
||||
countryCode: 'GB',
|
||||
countryCode: 'US',
|
||||
getMessage: async () => undefined,
|
||||
cachedGroupMetadata: async () => undefined,
|
||||
makeSignalRepository: makeLibSignalRepository
|
||||
|
||||
Reference in New Issue
Block a user