Update packages/microservices/server/server-tcp.ts

Co-authored-by: Gil Tichon <gil.tichon@lemonade.com>
This commit is contained in:
Kamil Mysliwiec
2024-11-06 12:47:19 +01:00
committed by GitHub
parent 0cbc15405d
commit 9cb84e78f8

View File

@@ -41,9 +41,9 @@ export class ServerTCP extends Server implements CustomTransportStrategy {
constructor(private readonly options: TcpOptions['options']) {
super();
this.port = this.getOptionsProp(options, 'port', TCP_DEFAULT_PORT);
this.host = this.getOptionsProp(options, 'host') || TCP_DEFAULT_HOST;
this.host = this.getOptionsProp(options, 'host', TCP_DEFAULT_HOST);
this.socketClass =
this.getOptionsProp(options, 'socketClass') || JsonSocket;
this.getOptionsProp(options, 'socketClass', JsonSocket);
this.tlsOptions = this.getOptionsProp(options, 'tlsOptions');
this.init();