SDK Golang v1.x

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 #

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 {
} else {
  fmt.Println("Successfully connected")