Optional
connectionListener: (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
Optional
port: numberOptional
hostname: stringDestroys all connected sockets and stops the TCP server
Static
createCreates a new TCP server with the provided options
Optional
connectionListener: (socket: Socket) => void
Constructs a new instance of the server