SDK
SDK Javascript v6.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 property provided in the constructor options. Subsequent call have no effect if the SDK is already connected.

Arguments #

Copied to clipboard!
connect();

Resolves #

Resolves if the connection is successful.

Usage #

Copied to clipboard!
try {
  await kuzzle.connect();
  console.log('Successfully connected');
} catch (error) {
  console.error(error.message);
}