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.

flushQueue #

Empties the offline request queue without playing it.

Arguments #

Copied to clipboard!
flushQueue();

Return #

The Kuzzle instance.

Usage #

Copied to clipboard!
try {
  kuzzle.flushQueue();
  console.log('Offline queue flushed');
} catch (error) {
  console.error(error);
}