Skip to content

queue API methods session

Steve edited this page Apr 29, 2020 · 1 revision

login( user:string, password:string):void ~> <ILoginReply>

Create a session with the given credentials.

logout( ):void ~> boolean

Close an existing session.

getRunning( ):boolean

const queue = client.createQueue({continueOnError:false});
queue.login("user", "password");
queue.logout();

// the following line actually starts the execution
queue.run();

Note: the methods above just add the commands to the queue. Execution starts when calling queue.run() or queue.runWithResults().
Clone this wiki locally