Interface: TcpOptions
Defined in: packages/microservices/src/interfaces/microservice.interface.ts:56
Connection options for the TCP transport.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
host? | string | Hostname to bind/connect. Defaults to "0.0.0.0" for server, "localhost" for client. | packages/microservices/src/interfaces/microservice.interface.ts:58 |
port? | number | TCP port. Defaults to 3000. | packages/microservices/src/interfaces/microservice.interface.ts:60 |
retryAttempts? | number | Maximum reconnection attempts (client only). Defaults to 3. | packages/microservices/src/interfaces/microservice.interface.ts:62 |
retryDelay? | number | Delay in milliseconds between reconnection attempts. Defaults to 1000. | packages/microservices/src/interfaces/microservice.interface.ts:64 |