Cloud API Overview > @adpt/cloud > NetworkService
NetworkService class
An abstract component that represents a network service.
Signature:
export declare abstract class NetworkService extends PrimitiveComponent<NetworkServiceProps> implements NetworkServiceInstance
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
defaultProps | static | { protocol: string; scope: string; } |
Methods
Method | Modifiers | Description |
---|---|---|
hostname(scope) | Returns the hostname of the NetworkService, once it is known. | |
port() | Returns the port number of the NetworkService, once it is known. |