SDK
SDK Golang v2.x
1

# 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

Copied to clipboard!
Connect() error

# Return

Return a Kuzzle error if the SDK can not connect to Kuzzle.

# Usage

Copied to clipboard!
err := kuzzle.Connect()
if err != nil {
  log.Fatal(err)
} else {
  fmt.Println("Successfully connected")
}