Instance Method
start(hostname:port:)
Start the server with the specified hostname and port, if provided. If left blank, the server will be started with its default configuration.
func start(hostname: String?, port: Int?) throws
Parameters
hostnameThe hostname to start the server with, or nil if the default one should be used.
portThe port to start the server with, or nil if the default one should be used.
Discussion
Deprecated: Please use
start(address: .hostname(hostname, port: port))instead.
Default Implementations
Server Implementations
start(hostname:port:)Start the server with the specified hostname and port, if provided. If left blank, the server will be started with its default configuration.