OptionalconnectionListener: (socket: Socket) => voidReturns the interface address that the server is bound to
Returns the interface port that the server is bound to
Returns an iterator of currently connected sockets
Starts the TCP server
Optionalport: numberOptionalhostname: stringDestroys all connected sockets and stops the TCP server
StaticcreateCreates a new TCP server with the provided options
OptionalconnectionListener: (socket: Socket) => void
Constructs a new instance of the server