Use timeoutInterval in ms

This commit is contained in:
Elias Nahum 2022-05-13 12:31:06 -04:00
parent e473894032
commit 5d628b3a81
No known key found for this signature in database
GPG key ID: E038DB71E0B61702

View file

@ -36,7 +36,7 @@ async function getDeviceIdForPing(serverUrl: string, checkDeviceId: boolean) {
}
// Default timeout interval for ping is 5 seconds
export const doPing = async (serverUrl: string, verifyPushProxy: boolean, timeoutInterval = 5) => {
export const doPing = async (serverUrl: string, verifyPushProxy: boolean, timeoutInterval = 5000) => {
let client: Client;
try {
client = await NetworkManager.createClient(serverUrl);