mirror of
https://github.com/nestjs/nest.git
synced 2026-02-21 23:11:44 +00:00
Update packages/microservices/server/server-tcp.ts
Co-authored-by: Gil Tichon <gil.tichon@lemonade.com>
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user