HostAndPort interface
Stay organized with collections
Save and categorize content based on your preferences.
An object containing the hostname and port number of an emulator.
Signature:
export interface HostAndPort
Properties
Property |
Type |
Description |
host |
string |
The host of the emulator. Can be omitted if discovered automatically through the hub or specified via environment variables. See TestEnvironmentConfig for details. |
port |
number |
The port of the emulator. Can be omitted if discovered automatically through the hub or specified via environment variables. See TestEnvironmentConfig for details. |
HostAndPort.host
The host of the emulator. Can be omitted if discovered automatically through the hub or specified via environment variables. See TestEnvironmentConfig
for details.
Signature:
host: string;
HostAndPort.port
The port of the emulator. Can be omitted if discovered automatically through the hub or specified via environment variables. See TestEnvironmentConfig
for details.
Signature:
port: number;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-28 UTC.
[null,null,["Last updated 2025-08-28 UTC."],[],[],null,["An object containing the hostname and port number of an emulator.\n\n\u003cbr /\u003e\n\n**Signature:** \n\n export interface HostAndPort \n\nProperties\n\n| Property | Type | Description |\n|-------------------------------------------------------------|--------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [host](./rules-unit-testing.hostandport.md#hostandporthost) | string | The host of the emulator. Can be omitted if discovered automatically through the hub or specified via environment variables. See `TestEnvironmentConfig` for details. |\n| [port](./rules-unit-testing.hostandport.md#hostandportport) | number | The port of the emulator. Can be omitted if discovered automatically through the hub or specified via environment variables. See `TestEnvironmentConfig` for details. |\n\nHostAndPort.host\n\nThe host of the emulator. Can be omitted if discovered automatically through the hub or specified via environment variables. See `TestEnvironmentConfig` for details.\n\n**Signature:** \n\n host: string;\n\nHostAndPort.port\n\nThe port of the emulator. Can be omitted if discovered automatically through the hub or specified via environment variables. See `TestEnvironmentConfig` for details.\n\n**Signature:** \n\n port: number;"]]