Connect #
Connects to Kuzzle using the host argument provided to the connection.Connection (see Kuzzle constructor). Subsequent call have no effect if the SDK is already connected.
Arguments #
Connect() errorReturn #
Return a Kuzzle error if the SDK can not connect to Kuzzle.
Usage #
err := kuzzle.Connect()
if err != nil {
log.Fatal(err)
} else {
fmt.Println("Successfully connected")
}