Methods ¶
Instance Methods ¶
serve()
Starts listening for connections.
isServing()
Returns true if the server is listening for connections.
stop()
Stops listening for connections.
getPort()
If the server is not listening for connections, returns the port passed when creating the server. If the server is listening for connections, it returns the actual port being used.