Properties
Private Readonly host
host: string
Private isExplicitlyTerminated
isExplicitlyTerminated: boolean = false
Protected Readonly logger
logger: Logger = new Logger(Server.name)
Protected Readonly messageHandlers
message
Handlers: Map<string, MessageHandler<any, any, any>> = new Map<string, MessageHandler>()
Private Readonly options
options: TcpOptions["options"]
Private Readonly port
port: number
Private retryAttemptsCount
retryAttemptsCount: number = 0
Private server
server: NetSocket
Readonly transportId
transport
Id: TCP = Transport.TCP
Transforms the server Pattern to valid type and returns a route for him.