SDK
SDK Golang v2.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.

Disconnect #

Closes the current connection to Kuzzle. The SDK is now in offline state. A call to disconnect() will not trigger a disconnected event. This event is only triggered on unexpected disconnection.

Arguments #

Disconnect() error

Return #

Return a Kuzzle error if the connection can't be closed.

Usage #

err := kuzzle.Disconnect()
if err != nil {
  log.Fatal(err)
} else {
  fmt.Println("Success")
}