Skip to content

Commit ac1aa32

Browse files
committed
Change default port of useEmulator() to 9399 (was 9510).
In cl/636395279 the grpc and http ports were combined. Also, that CL changes the --grpc_port and --http_port flags into a single flag: --listen, whose default value is 127.0.0.1:3628. This change will be included in the v1.1.18 release of the Data Connect emulator, and will be used by firestore-tools with firebase/firebase-tools#7211 merged in.
1 parent 309ea95 commit ac1aa32

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

firebase-dataconnect/emulator/emulator_noauth.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ readonly CLI_ARGS=(
2222
-logtostderr
2323
-v=9
2424
dev
25+
-listen=127.0.0.1:9399
2526
-service_location=us-central1
2627
-config_dir=dataconnect
2728
-local_connection_string='postgresql://postgres:postgres@localhost:5432?sslmode=disable'

firebase-dataconnect/src/main/kotlin/com/google/firebase/dataconnect/FirebaseDataConnect.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public interface FirebaseDataConnect : AutoCloseable {
157157
* @param port The TCP port of the Data Connect emulator to which to connect. The default value is
158158
* the default port used
159159
*/
160-
public fun useEmulator(host: String = "10.0.2.2", port: Int = 9510)
160+
public fun useEmulator(host: String = "10.0.2.2", port: Int = 9399)
161161

162162
/**
163163
* Creates and returns a [QueryRef] for running the specified query.

0 commit comments

Comments
 (0)