mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
fix: use handshake timeout
This commit is contained in:
@@ -28,6 +28,7 @@ export const makeSocket = ({
|
|||||||
}: SocketConfig) => {
|
}: SocketConfig) => {
|
||||||
const ws = new WebSocket(waWebSocketUrl, undefined, {
|
const ws = new WebSocket(waWebSocketUrl, undefined, {
|
||||||
origin: DEFAULT_ORIGIN,
|
origin: DEFAULT_ORIGIN,
|
||||||
|
handshakeTimeout: connectTimeoutMs,
|
||||||
timeout: connectTimeoutMs,
|
timeout: connectTimeoutMs,
|
||||||
agent
|
agent
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user