Skip to content

Interface: TcpOptions

Defined in: packages/microservices/src/interfaces/microservice.interface.ts:56

Connection options for the TCP transport.

Properties

PropertyTypeDescriptionDefined in
host?stringHostname to bind/connect. Defaults to "0.0.0.0" for server, "localhost" for client.packages/microservices/src/interfaces/microservice.interface.ts:58
port?numberTCP port. Defaults to 3000.packages/microservices/src/interfaces/microservice.interface.ts:60
retryAttempts?numberMaximum reconnection attempts (client only). Defaults to 3.packages/microservices/src/interfaces/microservice.interface.ts:62
retryDelay?numberDelay in milliseconds between reconnection attempts. Defaults to 1000.packages/microservices/src/interfaces/microservice.interface.ts:64

Released under the MIT License.