fix: use handshake timeout

This commit is contained in:
Adhiraj Singh
2022-05-09 15:42:42 +05:30
parent 6e0ac6899c
commit 64a6070845

View File

@@ -28,6 +28,7 @@ export const makeSocket = ({
}: SocketConfig) => {
const ws = new WebSocket(waWebSocketUrl, undefined, {
origin: DEFAULT_ORIGIN,
handshakeTimeout: connectTimeoutMs,
timeout: connectTimeoutMs,
agent
})