mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
feat: copy in axios options headers to WebSocket
This commit is contained in:
@@ -27,10 +27,12 @@ export const makeSocket = ({
|
||||
defaultQueryTimeoutMs,
|
||||
syncFullHistory,
|
||||
transactionOpts,
|
||||
qrTimeout
|
||||
qrTimeout,
|
||||
options,
|
||||
}: SocketConfig) => {
|
||||
const ws = new WebSocket(waWebSocketUrl, undefined, {
|
||||
origin: DEFAULT_ORIGIN,
|
||||
headers: options.headers,
|
||||
handshakeTimeout: connectTimeoutMs,
|
||||
timeout: connectTimeoutMs,
|
||||
agent
|
||||
|
||||
Reference in New Issue
Block a user