Skip to main content

Terminate

Terminate close the connection and releases everything.

await connection.terminate();
console.log("connection terminated");

But what to do - when you want to reinitiate the connection ?

You will have to the create Connection again.

connection = new JsStore.Connection(new Worker('worker_url'));