Use timeoutInterval in ms

This commit is contained in:
Elias Nahum
2022-05-13 12:31:06 -04:00
parent e473894032
commit 5d628b3a81

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);