Skip to content

Commit 4d18650

Browse files
committed
Addressed comment
1 parent 6c07e9b commit 4d18650

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/database/src/realtime/Connection.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,7 @@ export class Connection {
346346
})
347347
};
348348
if (this.repoInfo_.isUsingEmulator) {
349+
// Upon connecting, the emulator will pass the hostname that it's aware of, but we prefer the user's set hostname via `connectDatabaseEmulator` over what the emulator passes.
349350
handshakePayload.h = this.repoInfo_.host;
350351
}
351352
this.onHandshake_(handshakePayload);

0 commit comments

Comments
 (0)