SDK
SDK Java v1.x
1

# connect

Connects to Kuzzle using the host argument provided in the constructor options.
Subsequent call have no effect if the SDK is already connected.

# Signature

Copied to clipboard!
String connect()

# Return

A String with the error message or null if connection is made successfully.

# Usage

Copied to clipboard!
try {
  kuzzle.connect();
  System.out.println("Successfully connected");
} catch(KuzzleException e) {
  System.err.println(e.getMessage());
}