Factories

As programming interfaces for object-oriented languages, the Solace JavaScript API and Solace Node.js API use a singleton factory as the first point of contact. A factory is used to obtain instances of messaging system entities such as contexts, sessions, non-temporary destinations, durable endpoint instances, and subscriptions. It is also used to configure global properties, and it exposes a number of useful statistics at the message and memory pool levels.

The factory for the Solace JavaScript API and Solace Node.js API is solace.SolclientFactory.