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,
|
defaultQueryTimeoutMs,
|
||||||
syncFullHistory,
|
syncFullHistory,
|
||||||
transactionOpts,
|
transactionOpts,
|
||||||
qrTimeout
|
qrTimeout,
|
||||||
|
options,
|
||||||
}: SocketConfig) => {
|
}: SocketConfig) => {
|
||||||
const ws = new WebSocket(waWebSocketUrl, undefined, {
|
const ws = new WebSocket(waWebSocketUrl, undefined, {
|
||||||
origin: DEFAULT_ORIGIN,
|
origin: DEFAULT_ORIGIN,
|
||||||
|
headers: options.headers,
|
||||||
handshakeTimeout: connectTimeoutMs,
|
handshakeTimeout: connectTimeoutMs,
|
||||||
timeout: connectTimeoutMs,
|
timeout: connectTimeoutMs,
|
||||||
agent
|
agent
|
||||||
|
|||||||
Reference in New Issue
Block a user