Skip to content

Commit 9de2506

Browse files
committed
Added rtdb changes
1 parent 9edcd82 commit 9de2506

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/database/src/api/Database.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ import {
3030
deepEqual,
3131
EmulatorMockTokenOptions,
3232
getDefaultEmulatorHostnameAndPort,
33-
isCloudWorkstation
33+
isCloudWorkstation,
34+
pingServer
3435
} from '@firebase/util';
3536

3637
import { AppCheckTokenProvider } from '../core/AppCheckTokenProvider';
@@ -389,6 +390,10 @@ export function connectDatabaseEmulator(
389390
tokenProvider = new EmulatorTokenProvider(token);
390391
}
391392

393+
if (isCloudWorkstation(host)) {
394+
void pingServer(host);
395+
}
396+
392397
// Modify the repo to apply emulator settings
393398
repoManagerApplyEmulatorSettings(repo, hostAndPort, options, tokenProvider);
394399
}

0 commit comments

Comments
 (0)