SDK
SDK Golang v1.x
1

You are currently looking at the documentation of a previous version of Kuzzle. We strongly recommend that you use the latest version. You can also use the version selector in the top menu.

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() error

Return #

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")
}