HAKit
public enum HAKit
Namespace entrypoint of the library
-
Create a new connection
Declaration
Swift
public static func connection( configuration: HAConnectionConfiguration, connectAutomatically: Bool = true ) -> HAConnection
Parameters
configuration
The configuration for the connection
connectAutomatically
Defaults to
true
. Whether to call .connect() automatically.Return Value
The connection itself