Represents the configuration for a client connection. This configuration includes the protocol, host, and port to use for connecting to a server.

Constructors

Properties

Methods

Constructors

  • Creates an instance of the ClientConfig class.

    Parameters

    • url: URL

      The URL object containing the protocol, host, and port to use for the client connection.

    Returns ClientConfig

Properties

url: URL

The url object

Methods

  • Static method to create a default client configuration for development. This will use HTTP as the protocol, 'localhost' as the host, and 8080 as the port.

    Returns ClientConfig

    A new instance of ClientConfig with development settings.